Version: v0.11.3 Latest Latest

This package is not in the latest version of its module.

Go to latest
Published: Aug 27, 2021 License: Apache-2.0 Imports: 4 Imported by: 9




View Source
const (
	Default_ProbeConf_Port                  = int32(31122)
	Default_ProbeConf_NumTxPorts            = int32(16)
	Default_ProbeConf_MaxLength             = int32(1300)
	Default_ProbeConf_ExportMetricsByPort   = bool(false)
	Default_ProbeConf_UseAllTxPortsPerProbe = bool(false)

Default values for ProbeConf fields.


View Source
var File_github_com_google_cloudprober_probes_udp_proto_config_proto protoreflect.FileDescriptor


This section is empty.


type ProbeConf

type ProbeConf struct {

	// Port to send UDP Ping to (UDP Echo).  If running with the UDP server that
	// comes with cloudprober, it should be same as
	// ProberConfig.udp_echo_server_port.
	Port *int32 `protobuf:"varint,3,opt,name=port,def=31122" json:"port,omitempty"`
	// Number of sending side ports to use.
	NumTxPorts *int32 `protobuf:"varint,4,opt,name=num_tx_ports,json=numTxPorts,def=16" json:"num_tx_ports,omitempty"`
	// message max to account for MTU.
	MaxLength *int32 `protobuf:"varint,5,opt,name=max_length,json=maxLength,def=1300" json:"max_length,omitempty"`
	// Payload size
	PayloadSize *int32 `protobuf:"varint,6,opt,name=payload_size,json=payloadSize" json:"payload_size,omitempty"`
	// Changes the exported monitoring streams to be per port:
	// 1. Changes the streams names to total-per-port, success-per-port etc.
	// 2. Adds src_port and dst_port as stream labels.
	// Note that the field name is experimental and may change in the future.
	ExportMetricsByPort *bool `protobuf:"varint,7,opt,name=export_metrics_by_port,json=exportMetricsByPort,def=0" json:"export_metrics_by_port,omitempty"`
	// Whether to use all transmit ports per probe, per target.
	// Default is to probe each target once per probe and round-robin through the
	// source ports.
	// Setting this field to true changes the behavior to send traffic from all
	// ports to all targets in each probe.
	// For example, if num_tx_ports is set to 16, in every probe cycle, we'll send
	// 16 packets to every target (1 per tx port).
	// Note that setting this field to true will increase the probe traffic.
	UseAllTxPortsPerProbe *bool `` /* 132-byte string literal not displayed */
	// contains filtered or unexported fields

func (*ProbeConf) Descriptor deprecated

func (*ProbeConf) Descriptor() ([]byte, []int)

Deprecated: Use ProbeConf.ProtoReflect.Descriptor instead.

func (*ProbeConf) GetExportMetricsByPort

func (x *ProbeConf) GetExportMetricsByPort() bool

func (*ProbeConf) GetMaxLength

func (x *ProbeConf) GetMaxLength() int32

func (*ProbeConf) GetNumTxPorts

func (x *ProbeConf) GetNumTxPorts() int32

func (*ProbeConf) GetPayloadSize added in v0.10.6

func (x *ProbeConf) GetPayloadSize() int32

func (*ProbeConf) GetPort

func (x *ProbeConf) GetPort() int32

func (*ProbeConf) GetUseAllTxPortsPerProbe

func (x *ProbeConf) GetUseAllTxPortsPerProbe() bool

func (*ProbeConf) ProtoMessage

func (*ProbeConf) ProtoMessage()

func (*ProbeConf) ProtoReflect added in v0.10.8

func (x *ProbeConf) ProtoReflect() protoreflect.Message

func (*ProbeConf) Reset

func (x *ProbeConf) Reset()

func (*ProbeConf) String

func (x *ProbeConf) String() string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL