proto

package
v0.14.5 Latest Latest
Warning

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

Go to latest
Published: Aug 25, 2026 License: Apache-2.0 Imports: 22 Imported by: 5

Documentation

Index

Constants

View Source
const (
	Default_ProbeDef_LatencyUnit       = string("us")
	Default_ProbeDef_LatencyMetricName = string("latency")
)

Default values for ProbeDef fields.

View Source
const (
	Default_Schedule_StartWeekday = Schedule_EVERYDAY
	Default_Schedule_StartTime    = string("00:00")
	Default_Schedule_EndWeekday   = Schedule_EVERYDAY
	Default_Schedule_EndTime      = string("23:59")
	Default_Schedule_Timezone     = string("UTC")
)

Default values for Schedule fields.

Variables

View Source
var (
	ProbeDef_Type_name = map[int32]string{
		0:  "PING",
		1:  "HTTP",
		2:  "DNS",
		3:  "EXTERNAL",
		4:  "UDP",
		5:  "UDP_LISTENER",
		6:  "GRPC",
		7:  "TCP",
		8:  "BROWSER",
		9:  "SYSTEM",
		10: "STARLARK",
		11: "SQL",
		12: "EXTERNAL_GRPC",
		98: "EXTENSION",
		99: "USER_DEFINED",
	}
	ProbeDef_Type_value = map[string]int32{
		"PING":          0,
		"HTTP":          1,
		"DNS":           2,
		"EXTERNAL":      3,
		"UDP":           4,
		"UDP_LISTENER":  5,
		"GRPC":          6,
		"TCP":           7,
		"BROWSER":       8,
		"SYSTEM":        9,
		"STARLARK":      10,
		"SQL":           11,
		"EXTERNAL_GRPC": 12,
		"EXTENSION":     98,
		"USER_DEFINED":  99,
	}
)

Enum value maps for ProbeDef_Type.

View Source
var (
	ProbeDef_IPVersion_name = map[int32]string{
		0: "IP_VERSION_UNSPECIFIED",
		1: "IPV4",
		2: "IPV6",
	}
	ProbeDef_IPVersion_value = map[string]int32{
		"IP_VERSION_UNSPECIFIED": 0,
		"IPV4":                   1,
		"IPV6":                   2,
	}
)

Enum value maps for ProbeDef_IPVersion.

View Source
var (
	Schedule_Weekday_name = map[int32]string{
		0: "EVERYDAY",
		1: "SUNDAY",
		2: "MONDAY",
		3: "TUESDAY",
		4: "WEDNESDAY",
		5: "THURSDAY",
		6: "FRIDAY",
		7: "SATURDAY",
	}
	Schedule_Weekday_value = map[string]int32{
		"EVERYDAY":  0,
		"SUNDAY":    1,
		"MONDAY":    2,
		"TUESDAY":   3,
		"WEDNESDAY": 4,
		"THURSDAY":  5,
		"FRIDAY":    6,
		"SATURDAY":  7,
	}
)

Enum value maps for Schedule_Weekday.

View Source
var (
	Schedule_ScheduleType_name = map[int32]string{
		0: "ScheduleType_UNSPECIFIED",
		1: "ENABLE",
		2: "DISABLE",
	}
	Schedule_ScheduleType_value = map[string]int32{
		"ScheduleType_UNSPECIFIED": 0,
		"ENABLE":                   1,
		"DISABLE":                  2,
	}
)

Enum value maps for Schedule_ScheduleType.

View Source
var File_github_com_cloudprober_cloudprober_probes_proto_config_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type AdditionalLabel added in v0.10.5

type AdditionalLabel struct {
	Key *string `protobuf:"bytes,1,req,name=key" json:"key,omitempty"`
	// Value can either be a static value or can be derived from target's labels.
	// To get value from target's labels, use target.labels.<target's label key>
	// as value.
	Value *string `protobuf:"bytes,2,req,name=value" json:"value,omitempty"`
	// contains filtered or unexported fields
}

func (*AdditionalLabel) Descriptor deprecated added in v0.10.5

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

Deprecated: Use AdditionalLabel.ProtoReflect.Descriptor instead.

func (*AdditionalLabel) GetKey added in v0.10.5

func (x *AdditionalLabel) GetKey() string

func (*AdditionalLabel) GetValue added in v0.10.5

func (x *AdditionalLabel) GetValue() string

func (*AdditionalLabel) ProtoMessage added in v0.10.5

func (*AdditionalLabel) ProtoMessage()

func (*AdditionalLabel) ProtoReflect added in v0.11.4

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

func (*AdditionalLabel) Reset added in v0.10.5

func (x *AdditionalLabel) Reset()

func (*AdditionalLabel) String added in v0.10.5

func (x *AdditionalLabel) String() string

type DebugOptions added in v0.10.2

type DebugOptions struct {

	// Whether to log metrics or not.
	LogMetrics *bool `protobuf:"varint,1,opt,name=log_metrics,json=logMetrics" json:"log_metrics,omitempty"`
	// contains filtered or unexported fields
}

func (*DebugOptions) Descriptor deprecated added in v0.10.2

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

Deprecated: Use DebugOptions.ProtoReflect.Descriptor instead.

func (*DebugOptions) GetLogMetrics added in v0.10.2

func (x *DebugOptions) GetLogMetrics() bool

func (*DebugOptions) ProtoMessage added in v0.10.2

func (*DebugOptions) ProtoMessage()

func (*DebugOptions) ProtoReflect added in v0.11.4

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

func (*DebugOptions) Reset added in v0.10.2

func (x *DebugOptions) Reset()

func (*DebugOptions) String added in v0.10.2

func (x *DebugOptions) String() string

type ProbeDef

type ProbeDef struct {

	// Probe name. It should be unique across all probes.
	Name *string        `protobuf:"bytes,1,req,name=name" json:"name,omitempty"`
	Type *ProbeDef_Type `protobuf:"varint,2,req,name=type,enum=cloudprober.probes.ProbeDef_Type" json:"type,omitempty"`
	// Interval between two probe runs in milliseconds.
	// Only one of "interval" and "inteval_msec" should be defined.
	// Default interval is 2s.
	IntervalMsec *int32 `protobuf:"varint,4,opt,name=interval_msec,json=intervalMsec" json:"interval_msec,omitempty"`
	// Interval between two probe runs in string format, e.g. 10s.
	// Only one of "interval" and "inteval_msec" should be defined.
	// Default interval is 2s.
	Interval *string `protobuf:"bytes,16,opt,name=interval" json:"interval,omitempty"`
	// Timeout for each probe in milliseconds
	// Only one of "timeout" and "timeout_msec" should be defined.
	// Default timeout is 1s.
	TimeoutMsec *int32 `protobuf:"varint,5,opt,name=timeout_msec,json=timeoutMsec" json:"timeout_msec,omitempty"`
	// Timeout for each probe in string format, e.g. 10s.
	// Only one of "timeout" and "timeout_msec" should be defined.
	// Default timeout is 1s.
	Timeout *string `protobuf:"bytes,17,opt,name=timeout" json:"timeout,omitempty"`
	// Targets for the probe. Targets are required for all probes except
	// for external, user_defined, extension, browser, sql and system probe
	// types.
	Targets *proto.TargetsDef `protobuf:"bytes,6,opt,name=targets" json:"targets,omitempty"`
	// Latency distribution. If specified, latency is stored as a distribution.
	LatencyDistribution *proto1.Dist `protobuf:"bytes,7,opt,name=latency_distribution,json=latencyDistribution" json:"latency_distribution,omitempty"`
	// Latency unit. Any string that's parseable by time.ParseDuration.
	// Valid values: "ns", "us" (or "µs"), "ms", "s", "m", "h".
	LatencyUnit *string `protobuf:"bytes,8,opt,name=latency_unit,json=latencyUnit,def=us" json:"latency_unit,omitempty"`
	// Latency metric name. You may want to change the latency metric name, if:
	// you're using latency_distribution for some probes, and regular metric for
	// other probes, and you want to differentiate between the two.
	// For example:
	//
	//	probe {
	//	  name: "web1_latency"
	//	  latency_distribution: {...}
	//	  latency_metric_name: "latency_dist"
	//	  ...
	//	}
	//	probe {
	//	  name: "app1"
	//	  ...
	//	}
	LatencyMetricName *string `protobuf:"bytes,15,opt,name=latency_metric_name,json=latencyMetricName,def=latency" json:"latency_metric_name,omitempty"`
	// Validators for this probe. Validators are run on the data returned by the
	// probe. See https://cloudprober.org/docs/how-to/validators/ for more info.
	Validator []*proto2.Validator `protobuf:"bytes,9,rep,name=validator" json:"validator,omitempty"`
	// Set the source IP to send packets from, either by providing an IP address
	// directly, or a network interface.
	//
	// Types that are valid to be assigned to SourceIpConfig:
	//
	//	*ProbeDef_SourceIp
	//	*ProbeDef_SourceInterface
	SourceIpConfig isProbeDef_SourceIpConfig `protobuf_oneof:"source_ip_config"`
	IpVersion      *ProbeDef_IPVersion       `` /* 126-byte string literal not displayed */
	// How often to export stats. Probes usually run at a higher frequency (e.g.
	// every second); stats from individual probes are aggregated within
	// cloudprober until exported. In most cases, users don't need to change the
	// default.
	//
	// By default this field is set in the following way:
	// For all probes except UDP:
	//
	//	stats_export_interval=max(interval, 10s)
	//
	// For UDP:
	//
	//	stats_export_interval=max(2*max(interval, timeout), 10s)
	StatsExportIntervalMsec *int32 `` /* 129-byte string literal not displayed */
	// Additional labels to add to the probe results. Label's value can either be
	// static or can be derived from target's labels.
	//
	// Example:
	//
	//	additional_label {
	//	  key: "app"
	//	  value: "@target.label.app@"
	//	}
	//
	// (More detailed example at: examples/additional_label/cloudprober.cfg)
	AdditionalLabel []*AdditionalLabel `protobuf:"bytes,14,rep,name=additional_label,json=additionalLabel" json:"additional_label,omitempty"`
	// (Experimental) If set, test is inversed, i.e. we count it as success if
	// target doesn't respond. This is useful, for example, that your firewall is
	// working as expected.
	//
	// This is currently implemented only by PING, TCP, and HTTP probes.
	// Note: This field is currently experimental, and may change in future.
	NegativeTest *bool `protobuf:"varint,18,opt,name=negative_test,json=negativeTest" json:"negative_test,omitempty"`
	// Alerts configuration. If specified, cloudprober will generate alerts on
	// probe failures. You can specify multiple alerts.
	// Example:
	//
	//	alert {
	//	  name: "alert1"
	//	  condition {...}
	//	  notify {
	//	    pagerduty { ...}
	//	  }
	//	}
	//	alert {
	//	  name: "alert2"
	//	  notify { ... }
	//	}
	Alert []*proto3.AlertConf `protobuf:"bytes,19,rep,name=alert" json:"alert,omitempty"`
	// Types that are valid to be assigned to Probe:
	//
	//	*ProbeDef_PingProbe
	//	*ProbeDef_HttpProbe
	//	*ProbeDef_DnsProbe
	//	*ProbeDef_ExternalProbe
	//	*ProbeDef_UdpProbe
	//	*ProbeDef_UdpListenerProbe
	//	*ProbeDef_GrpcProbe
	//	*ProbeDef_TcpProbe
	//	*ProbeDef_BrowserProbe
	//	*ProbeDef_SystemProbe
	//	*ProbeDef_StarlarkProbe
	//	*ProbeDef_SqlProbe
	//	*ProbeDef_ExternalGrpcProbe
	//	*ProbeDef_UserDefinedProbe
	Probe isProbeDef_Probe `protobuf_oneof:"probe"`
	// Which machines this probe should run on. If defined, cloudprober will run
	// this probe only if machine's hostname matches this value. This is useful
	// for large deployments, where you may want to use the same prober config
	// everywhere but run this probe only on a subset of machines.
	RunOn *string `protobuf:"bytes,3,opt,name=run_on,json=runOn" json:"run_on,omitempty"`
	// How often to re-evaluate (discover) targets in seconds. This controls the
	// probe scheduler's target update interval — how often new targets start
	// being probed and removed targets stop being probed. If not set, defaults
	// to 1 minute.
	TargetsUpdateSec *int32 `protobuf:"varint,103,opt,name=targets_update_sec,json=targetsUpdateSec" json:"targets_update_sec,omitempty"`
	// Duration to wait before starting the probe.
	//
	// This delay is applied only once, at the very beginning of the probe execution
	// loop. It is useful for manually staggering the startup of multiple probes,
	// especially when the probe interval is large and the default automatic
	// staggering (capped at 1 minute) is not sufficient.
	//
	// Note: This delay is additive to the default automatic staggering.
	StartupDelayMsec *uint32 `protobuf:"varint,102,opt,name=startup_delay_msec,json=startupDelayMsec" json:"startup_delay_msec,omitempty"`
	// Schedule for the probe. You can use a schedule to specify when a probe
	// should or should not run. This is useful for running probes only during
	// business hours.
	//
	// You can specify multiple schedules. Probe will not run if any of the
	// "DISABLE" schedules are active. If both "ENABLE" and "DISABLE" schedules
	// overlap, "DISABLE" takes precedence.
	//
	// For example, to disable a probe during weekends and on Tuesday between 7pm
	// and 8pm, e.g. for rollouts:
	//
	//	schdule {
	//	  type: DISABLE
	//	  start_weekday: FRIDAY
	//	  start_time: "20:00"
	//	  end_weekday: SUNDAY
	//	  end_time: "17:00"
	//	  timezone: "America/New_York"
	//	}
	//	schdule {
	//	  type: DISABLE
	//	  start_weekday: TUESDAY
	//	  start_time: "19:00"
	//	  end_weekday: TUESDAY
	//	  end_time: "20:00"
	//	  timezone: "America/New_York"
	//	}
	Schedule []*Schedule `protobuf:"bytes,101,rep,name=schedule" json:"schedule,omitempty"`
	// Debug options. Currently only used to enable logging metrics.
	DebugOptions *DebugOptions `protobuf:"bytes,100,opt,name=debug_options,json=debugOptions" json:"debug_options,omitempty"`
	// contains filtered or unexported fields
}

Next tag: 104

func (*ProbeDef) Descriptor deprecated

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

Deprecated: Use ProbeDef.ProtoReflect.Descriptor instead.

func (*ProbeDef) GetAdditionalLabel added in v0.10.5

func (x *ProbeDef) GetAdditionalLabel() []*AdditionalLabel

func (*ProbeDef) GetAlert added in v0.12.7

func (x *ProbeDef) GetAlert() []*proto3.AlertConf

func (*ProbeDef) GetBrowserProbe added in v0.13.9

func (x *ProbeDef) GetBrowserProbe() *proto12.ProbeConf

func (*ProbeDef) GetDebugOptions added in v0.10.2

func (x *ProbeDef) GetDebugOptions() *DebugOptions

func (*ProbeDef) GetDnsProbe

func (x *ProbeDef) GetDnsProbe() *proto6.ProbeConf

func (*ProbeDef) GetExternalGrpcProbe added in v0.14.4

func (x *ProbeDef) GetExternalGrpcProbe() *proto16.ProbeConf

func (*ProbeDef) GetExternalProbe

func (x *ProbeDef) GetExternalProbe() *proto7.ProbeConf

func (*ProbeDef) GetGrpcProbe added in v0.11.4

func (x *ProbeDef) GetGrpcProbe() *proto10.ProbeConf

func (*ProbeDef) GetHttpProbe

func (x *ProbeDef) GetHttpProbe() *proto5.ProbeConf

func (*ProbeDef) GetInterval added in v0.11.4

func (x *ProbeDef) GetInterval() string

func (*ProbeDef) GetIntervalMsec

func (x *ProbeDef) GetIntervalMsec() int32

func (*ProbeDef) GetIpVersion added in v0.10.3

func (x *ProbeDef) GetIpVersion() ProbeDef_IPVersion

func (*ProbeDef) GetLatencyDistribution

func (x *ProbeDef) GetLatencyDistribution() *proto1.Dist

func (*ProbeDef) GetLatencyMetricName added in v0.11.4

func (x *ProbeDef) GetLatencyMetricName() string

func (*ProbeDef) GetLatencyUnit

func (x *ProbeDef) GetLatencyUnit() string

func (*ProbeDef) GetName

func (x *ProbeDef) GetName() string

func (*ProbeDef) GetNegativeTest added in v0.11.5

func (x *ProbeDef) GetNegativeTest() bool

func (*ProbeDef) GetPingProbe

func (x *ProbeDef) GetPingProbe() *proto4.ProbeConf

func (*ProbeDef) GetProbe

func (x *ProbeDef) GetProbe() isProbeDef_Probe

func (*ProbeDef) GetRunOn

func (x *ProbeDef) GetRunOn() string

func (*ProbeDef) GetSchedule added in v0.13.3

func (x *ProbeDef) GetSchedule() []*Schedule

func (*ProbeDef) GetSourceInterface added in v0.10.2

func (x *ProbeDef) GetSourceInterface() string

func (*ProbeDef) GetSourceIp added in v0.10.2

func (x *ProbeDef) GetSourceIp() string

func (*ProbeDef) GetSourceIpConfig added in v0.10.2

func (x *ProbeDef) GetSourceIpConfig() isProbeDef_SourceIpConfig

func (*ProbeDef) GetSqlProbe added in v0.14.4

func (x *ProbeDef) GetSqlProbe() *proto15.ProbeConf

func (*ProbeDef) GetStarlarkProbe added in v0.14.4

func (x *ProbeDef) GetStarlarkProbe() *proto14.ProbeConf

func (*ProbeDef) GetStartupDelayMsec added in v0.14.2

func (x *ProbeDef) GetStartupDelayMsec() uint32

func (*ProbeDef) GetStatsExportIntervalMsec added in v0.10.3

func (x *ProbeDef) GetStatsExportIntervalMsec() int32

func (*ProbeDef) GetSystemProbe added in v0.14.2

func (x *ProbeDef) GetSystemProbe() *proto13.ProbeConf

func (*ProbeDef) GetTargets

func (x *ProbeDef) GetTargets() *proto.TargetsDef

func (*ProbeDef) GetTargetsUpdateSec added in v0.14.3

func (x *ProbeDef) GetTargetsUpdateSec() int32

func (*ProbeDef) GetTcpProbe added in v0.11.5

func (x *ProbeDef) GetTcpProbe() *proto11.ProbeConf

func (*ProbeDef) GetTimeout added in v0.11.4

func (x *ProbeDef) GetTimeout() string

func (*ProbeDef) GetTimeoutMsec

func (x *ProbeDef) GetTimeoutMsec() int32

func (*ProbeDef) GetType

func (x *ProbeDef) GetType() ProbeDef_Type

func (*ProbeDef) GetUdpListenerProbe

func (x *ProbeDef) GetUdpListenerProbe() *proto9.ProbeConf

func (*ProbeDef) GetUdpProbe

func (x *ProbeDef) GetUdpProbe() *proto8.ProbeConf

func (*ProbeDef) GetUserDefinedProbe

func (x *ProbeDef) GetUserDefinedProbe() string

func (*ProbeDef) GetValidator

func (x *ProbeDef) GetValidator() []*proto2.Validator

func (*ProbeDef) ProtoMessage

func (*ProbeDef) ProtoMessage()

func (*ProbeDef) ProtoReflect added in v0.11.4

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

func (*ProbeDef) Reset

func (x *ProbeDef) Reset()

func (*ProbeDef) String

func (x *ProbeDef) String() string

type ProbeDef_BrowserProbe added in v0.13.9

type ProbeDef_BrowserProbe struct {
	BrowserProbe *proto12.ProbeConf `protobuf:"bytes,28,opt,name=browser_probe,json=browserProbe,oneof"`
}

type ProbeDef_DnsProbe

type ProbeDef_DnsProbe struct {
	DnsProbe *proto6.ProbeConf `protobuf:"bytes,22,opt,name=dns_probe,json=dnsProbe,oneof"`
}

type ProbeDef_ExternalGrpcProbe added in v0.14.4

type ProbeDef_ExternalGrpcProbe struct {
	ExternalGrpcProbe *proto16.ProbeConf `protobuf:"bytes,32,opt,name=external_grpc_probe,json=externalGrpcProbe,oneof"`
}

type ProbeDef_ExternalProbe

type ProbeDef_ExternalProbe struct {
	ExternalProbe *proto7.ProbeConf `protobuf:"bytes,23,opt,name=external_probe,json=externalProbe,oneof"`
}

type ProbeDef_GrpcProbe added in v0.11.4

type ProbeDef_GrpcProbe struct {
	GrpcProbe *proto10.ProbeConf `protobuf:"bytes,26,opt,name=grpc_probe,json=grpcProbe,oneof"`
}

type ProbeDef_HttpProbe

type ProbeDef_HttpProbe struct {
	HttpProbe *proto5.ProbeConf `protobuf:"bytes,21,opt,name=http_probe,json=httpProbe,oneof"`
}

type ProbeDef_IPVersion added in v0.10.3

type ProbeDef_IPVersion int32

IP version to use for networking probes. If specified, this is used while 1) resolving a target, 2) picking the correct IP for the source IP if source_interface option is provided, and 3) to craft the packet correctly for PING probes.

If ip_version is not configured but source_ip is provided, we get ip_version from it. If both are confgiured, an error is returned if there is a conflict between the two.

If left unspecified and both addresses are available in resolve call or on source interface, IPv4 is preferred. Future work: provide an option to prefer IPv4 and IPv6 explicitly.

const (
	ProbeDef_IP_VERSION_UNSPECIFIED ProbeDef_IPVersion = 0
	ProbeDef_IPV4                   ProbeDef_IPVersion = 1
	ProbeDef_IPV6                   ProbeDef_IPVersion = 2
)

func (ProbeDef_IPVersion) Descriptor added in v0.11.4

func (ProbeDef_IPVersion) Enum added in v0.10.3

func (ProbeDef_IPVersion) EnumDescriptor deprecated added in v0.10.3

func (ProbeDef_IPVersion) EnumDescriptor() ([]byte, []int)

Deprecated: Use ProbeDef_IPVersion.Descriptor instead.

func (ProbeDef_IPVersion) Number added in v0.11.4

func (ProbeDef_IPVersion) String added in v0.10.3

func (x ProbeDef_IPVersion) String() string

func (ProbeDef_IPVersion) Type added in v0.11.4

func (*ProbeDef_IPVersion) UnmarshalJSON deprecated added in v0.10.3

func (x *ProbeDef_IPVersion) UnmarshalJSON(b []byte) error

Deprecated: Do not use.

type ProbeDef_PingProbe

type ProbeDef_PingProbe struct {
	PingProbe *proto4.ProbeConf `protobuf:"bytes,20,opt,name=ping_probe,json=pingProbe,oneof"`
}

type ProbeDef_SourceInterface added in v0.10.2

type ProbeDef_SourceInterface struct {
	SourceInterface string `protobuf:"bytes,11,opt,name=source_interface,json=sourceInterface,oneof"`
}

type ProbeDef_SourceIp added in v0.10.2

type ProbeDef_SourceIp struct {
	SourceIp string `protobuf:"bytes,10,opt,name=source_ip,json=sourceIp,oneof"`
}

type ProbeDef_SqlProbe added in v0.14.4

type ProbeDef_SqlProbe struct {
	SqlProbe *proto15.ProbeConf `protobuf:"bytes,31,opt,name=sql_probe,json=sqlProbe,oneof"`
}

type ProbeDef_StarlarkProbe added in v0.14.4

type ProbeDef_StarlarkProbe struct {
	StarlarkProbe *proto14.ProbeConf `protobuf:"bytes,30,opt,name=starlark_probe,json=starlarkProbe,oneof"`
}

type ProbeDef_SystemProbe added in v0.14.2

type ProbeDef_SystemProbe struct {
	SystemProbe *proto13.ProbeConf `protobuf:"bytes,29,opt,name=system_probe,json=systemProbe,oneof"`
}

type ProbeDef_TcpProbe added in v0.11.5

type ProbeDef_TcpProbe struct {
	TcpProbe *proto11.ProbeConf `protobuf:"bytes,27,opt,name=tcp_probe,json=tcpProbe,oneof"`
}

type ProbeDef_Type

type ProbeDef_Type int32
const (
	ProbeDef_PING         ProbeDef_Type = 0
	ProbeDef_HTTP         ProbeDef_Type = 1
	ProbeDef_DNS          ProbeDef_Type = 2
	ProbeDef_EXTERNAL     ProbeDef_Type = 3
	ProbeDef_UDP          ProbeDef_Type = 4
	ProbeDef_UDP_LISTENER ProbeDef_Type = 5
	ProbeDef_GRPC         ProbeDef_Type = 6
	ProbeDef_TCP          ProbeDef_Type = 7
	ProbeDef_BROWSER      ProbeDef_Type = 8
	ProbeDef_SYSTEM       ProbeDef_Type = 9
	ProbeDef_STARLARK     ProbeDef_Type = 10
	ProbeDef_SQL          ProbeDef_Type = 11
	// Probe runs are delegated to an external sidecar process over gRPC.
	// See probes/grpcext for more details.
	ProbeDef_EXTERNAL_GRPC ProbeDef_Type = 12
	// One of the extension probe types. See "extensions" below for more
	// details.
	ProbeDef_EXTENSION ProbeDef_Type = 98
	// USER_DEFINED probe type is for a one off probe that you want to compile
	// into cloudprober, but you don't expect it to be reused. If you expect
	// it to be reused, you should consider adding it using the extensions
	// mechanism.
	ProbeDef_USER_DEFINED ProbeDef_Type = 99
)

func (ProbeDef_Type) Descriptor added in v0.11.4

func (ProbeDef_Type) Enum

func (x ProbeDef_Type) Enum() *ProbeDef_Type

func (ProbeDef_Type) EnumDescriptor deprecated

func (ProbeDef_Type) EnumDescriptor() ([]byte, []int)

Deprecated: Use ProbeDef_Type.Descriptor instead.

func (ProbeDef_Type) Number added in v0.11.4

func (ProbeDef_Type) String

func (x ProbeDef_Type) String() string

func (ProbeDef_Type) Type added in v0.11.4

func (*ProbeDef_Type) UnmarshalJSON deprecated

func (x *ProbeDef_Type) UnmarshalJSON(b []byte) error

Deprecated: Do not use.

type ProbeDef_UdpListenerProbe

type ProbeDef_UdpListenerProbe struct {
	UdpListenerProbe *proto9.ProbeConf `protobuf:"bytes,25,opt,name=udp_listener_probe,json=udpListenerProbe,oneof"`
}

type ProbeDef_UdpProbe

type ProbeDef_UdpProbe struct {
	UdpProbe *proto8.ProbeConf `protobuf:"bytes,24,opt,name=udp_probe,json=udpProbe,oneof"`
}

type ProbeDef_UserDefinedProbe

type ProbeDef_UserDefinedProbe struct {
	// This field's contents are passed on to the user defined probe,
	// registered for this probe's name through probes.RegisterUserDefined().
	UserDefinedProbe string `protobuf:"bytes,99,opt,name=user_defined_probe,json=userDefinedProbe,oneof"`
}

type Schedule added in v0.13.3

type Schedule struct {
	Type *Schedule_ScheduleType `protobuf:"varint,1,req,name=type,enum=cloudprober.probes.Schedule_ScheduleType" json:"type,omitempty"`
	// Period start weekday. If not specified, it defaults to EVERYDAY.
	StartWeekday *Schedule_Weekday `` /* 138-byte string literal not displayed */
	// Start time in 24 hour HH:MM format.
	StartTime *string `protobuf:"bytes,3,opt,name=start_time,json=startTime,def=00:00" json:"start_time,omitempty"`
	// Period end weekday. If not specified, it defaults to EVERYDAY.
	EndWeekday *Schedule_Weekday `` /* 132-byte string literal not displayed */
	// End time in 24 hour HH:MM format.
	EndTime *string `protobuf:"bytes,5,opt,name=end_time,json=endTime,def=23:59" json:"end_time,omitempty"`
	// Timezone in which the probe should run. If not specified, it defaults to
	// UTC. Example: "America/New_York"
	Timezone *string `protobuf:"bytes,6,opt,name=timezone,def=UTC" json:"timezone,omitempty"`
	// contains filtered or unexported fields
}

func (*Schedule) Descriptor deprecated added in v0.13.3

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

Deprecated: Use Schedule.ProtoReflect.Descriptor instead.

func (*Schedule) GetEndTime added in v0.13.3

func (x *Schedule) GetEndTime() string

func (*Schedule) GetEndWeekday added in v0.13.3

func (x *Schedule) GetEndWeekday() Schedule_Weekday

func (*Schedule) GetStartTime added in v0.13.3

func (x *Schedule) GetStartTime() string

func (*Schedule) GetStartWeekday added in v0.13.3

func (x *Schedule) GetStartWeekday() Schedule_Weekday

func (*Schedule) GetTimezone added in v0.13.3

func (x *Schedule) GetTimezone() string

func (*Schedule) GetType added in v0.13.3

func (x *Schedule) GetType() Schedule_ScheduleType

func (*Schedule) ProtoMessage added in v0.13.3

func (*Schedule) ProtoMessage()

func (*Schedule) ProtoReflect added in v0.13.3

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

func (*Schedule) Reset added in v0.13.3

func (x *Schedule) Reset()

func (*Schedule) String added in v0.13.3

func (x *Schedule) String() string

type Schedule_ScheduleType added in v0.13.3

type Schedule_ScheduleType int32
const (
	Schedule_ScheduleType_UNSPECIFIED Schedule_ScheduleType = 0
	Schedule_ENABLE                   Schedule_ScheduleType = 1
	Schedule_DISABLE                  Schedule_ScheduleType = 2
)

func (Schedule_ScheduleType) Descriptor added in v0.13.3

func (Schedule_ScheduleType) Enum added in v0.13.3

func (Schedule_ScheduleType) EnumDescriptor deprecated added in v0.13.3

func (Schedule_ScheduleType) EnumDescriptor() ([]byte, []int)

Deprecated: Use Schedule_ScheduleType.Descriptor instead.

func (Schedule_ScheduleType) Number added in v0.13.3

func (Schedule_ScheduleType) String added in v0.13.3

func (x Schedule_ScheduleType) String() string

func (Schedule_ScheduleType) Type added in v0.13.3

func (*Schedule_ScheduleType) UnmarshalJSON deprecated added in v0.13.3

func (x *Schedule_ScheduleType) UnmarshalJSON(b []byte) error

Deprecated: Do not use.

type Schedule_Weekday added in v0.13.3

type Schedule_Weekday int32
const (
	Schedule_EVERYDAY  Schedule_Weekday = 0
	Schedule_SUNDAY    Schedule_Weekday = 1
	Schedule_MONDAY    Schedule_Weekday = 2
	Schedule_TUESDAY   Schedule_Weekday = 3
	Schedule_WEDNESDAY Schedule_Weekday = 4
	Schedule_THURSDAY  Schedule_Weekday = 5
	Schedule_FRIDAY    Schedule_Weekday = 6
	Schedule_SATURDAY  Schedule_Weekday = 7
)

func (Schedule_Weekday) Descriptor added in v0.13.3

func (Schedule_Weekday) Enum added in v0.13.3

func (Schedule_Weekday) EnumDescriptor deprecated added in v0.13.3

func (Schedule_Weekday) EnumDescriptor() ([]byte, []int)

Deprecated: Use Schedule_Weekday.Descriptor instead.

func (Schedule_Weekday) Number added in v0.13.3

func (Schedule_Weekday) String added in v0.13.3

func (x Schedule_Weekday) String() string

func (Schedule_Weekday) Type added in v0.13.3

func (*Schedule_Weekday) UnmarshalJSON deprecated added in v0.13.3

func (x *Schedule_Weekday) UnmarshalJSON(b []byte) error

Deprecated: Do not use.

Jump to

Keyboard shortcuts

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