Documentation ¶
Index ¶
- Constants
- Variables
- type AdditionalLabel
- func (*AdditionalLabel) Descriptor() ([]byte, []int)deprecated
- func (x *AdditionalLabel) GetKey() string
- func (x *AdditionalLabel) GetValue() string
- func (*AdditionalLabel) ProtoMessage()
- func (x *AdditionalLabel) ProtoReflect() protoreflect.Message
- func (x *AdditionalLabel) Reset()
- func (x *AdditionalLabel) String() string
- type DebugOptions
- type ProbeDef
- func (*ProbeDef) Descriptor() ([]byte, []int)deprecated
- func (x *ProbeDef) GetAdditionalLabel() []*AdditionalLabel
- func (x *ProbeDef) GetAlert() []*proto3.AlertConf
- func (x *ProbeDef) GetDebugOptions() *DebugOptions
- func (x *ProbeDef) GetDnsProbe() *proto6.ProbeConf
- func (x *ProbeDef) GetExternalProbe() *proto7.ProbeConf
- func (x *ProbeDef) GetGrpcProbe() *proto10.ProbeConf
- func (x *ProbeDef) GetHttpProbe() *proto5.ProbeConf
- func (x *ProbeDef) GetInterval() string
- func (x *ProbeDef) GetIntervalMsec() int32
- func (x *ProbeDef) GetIpVersion() ProbeDef_IPVersion
- func (x *ProbeDef) GetLatencyDistribution() *proto1.Dist
- func (x *ProbeDef) GetLatencyMetricName() string
- func (x *ProbeDef) GetLatencyUnit() string
- func (x *ProbeDef) GetName() string
- func (x *ProbeDef) GetNegativeTest() bool
- func (x *ProbeDef) GetPingProbe() *proto4.ProbeConf
- func (m *ProbeDef) GetProbe() isProbeDef_Probe
- func (x *ProbeDef) GetRunOn() string
- func (x *ProbeDef) GetSchedule() []*Schedule
- func (x *ProbeDef) GetSourceInterface() string
- func (x *ProbeDef) GetSourceIp() string
- func (m *ProbeDef) GetSourceIpConfig() isProbeDef_SourceIpConfig
- func (x *ProbeDef) GetStatsExportIntervalMsec() int32
- func (x *ProbeDef) GetTargets() *proto.TargetsDef
- func (x *ProbeDef) GetTcpProbe() *proto11.ProbeConf
- func (x *ProbeDef) GetTimeout() string
- func (x *ProbeDef) GetTimeoutMsec() int32
- func (x *ProbeDef) GetType() ProbeDef_Type
- func (x *ProbeDef) GetUdpListenerProbe() *proto9.ProbeConf
- func (x *ProbeDef) GetUdpProbe() *proto8.ProbeConf
- func (x *ProbeDef) GetUserDefinedProbe() string
- func (x *ProbeDef) GetValidator() []*proto2.Validator
- func (*ProbeDef) ProtoMessage()
- func (x *ProbeDef) ProtoReflect() protoreflect.Message
- func (x *ProbeDef) Reset()
- func (x *ProbeDef) String() string
- type ProbeDef_DnsProbe
- type ProbeDef_ExternalProbe
- type ProbeDef_GrpcProbe
- type ProbeDef_HttpProbe
- type ProbeDef_IPVersion
- func (ProbeDef_IPVersion) Descriptor() protoreflect.EnumDescriptor
- func (x ProbeDef_IPVersion) Enum() *ProbeDef_IPVersion
- func (ProbeDef_IPVersion) EnumDescriptor() ([]byte, []int)deprecated
- func (x ProbeDef_IPVersion) Number() protoreflect.EnumNumber
- func (x ProbeDef_IPVersion) String() string
- func (ProbeDef_IPVersion) Type() protoreflect.EnumType
- func (x *ProbeDef_IPVersion) UnmarshalJSON(b []byte) errordeprecated
- type ProbeDef_PingProbe
- type ProbeDef_SourceInterface
- type ProbeDef_SourceIp
- type ProbeDef_TcpProbe
- type ProbeDef_Type
- func (ProbeDef_Type) Descriptor() protoreflect.EnumDescriptor
- func (x ProbeDef_Type) Enum() *ProbeDef_Type
- func (ProbeDef_Type) EnumDescriptor() ([]byte, []int)deprecated
- func (x ProbeDef_Type) Number() protoreflect.EnumNumber
- func (x ProbeDef_Type) String() string
- func (ProbeDef_Type) Type() protoreflect.EnumType
- func (x *ProbeDef_Type) UnmarshalJSON(b []byte) errordeprecated
- type ProbeDef_UdpListenerProbe
- type ProbeDef_UdpProbe
- type ProbeDef_UserDefinedProbe
- type Schedule
- func (*Schedule) Descriptor() ([]byte, []int)deprecated
- func (x *Schedule) GetEndTime() string
- func (x *Schedule) GetEndWeekday() Schedule_Weekday
- func (x *Schedule) GetStartTime() string
- func (x *Schedule) GetStartWeekday() Schedule_Weekday
- func (x *Schedule) GetTimezone() string
- func (x *Schedule) GetType() Schedule_ScheduleType
- func (*Schedule) ProtoMessage()
- func (x *Schedule) ProtoReflect() protoreflect.Message
- func (x *Schedule) Reset()
- func (x *Schedule) String() string
- type Schedule_ScheduleType
- func (Schedule_ScheduleType) Descriptor() protoreflect.EnumDescriptor
- func (x Schedule_ScheduleType) Enum() *Schedule_ScheduleType
- func (Schedule_ScheduleType) EnumDescriptor() ([]byte, []int)deprecated
- func (x Schedule_ScheduleType) Number() protoreflect.EnumNumber
- func (x Schedule_ScheduleType) String() string
- func (Schedule_ScheduleType) Type() protoreflect.EnumType
- func (x *Schedule_ScheduleType) UnmarshalJSON(b []byte) errordeprecated
- type Schedule_Weekday
- func (Schedule_Weekday) Descriptor() protoreflect.EnumDescriptor
- func (x Schedule_Weekday) Enum() *Schedule_Weekday
- func (Schedule_Weekday) EnumDescriptor() ([]byte, []int)deprecated
- func (x Schedule_Weekday) Number() protoreflect.EnumNumber
- func (x Schedule_Weekday) String() string
- func (Schedule_Weekday) Type() protoreflect.EnumType
- func (x *Schedule_Weekday) UnmarshalJSON(b []byte) errordeprecated
Constants ¶
const ( Default_ProbeDef_LatencyUnit = string("us") Default_ProbeDef_LatencyMetricName = string("latency") )
Default values for ProbeDef fields.
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 ¶
var ( ProbeDef_Type_name = map[int32]string{ 0: "PING", 1: "HTTP", 2: "DNS", 3: "EXTERNAL", 4: "UDP", 5: "UDP_LISTENER", 6: "GRPC", 7: "TCP", 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, "EXTENSION": 98, "USER_DEFINED": 99, } )
Enum value maps for ProbeDef_Type.
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.
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.
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.
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, and extension 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 assignable 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 and TCP 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 assignable to Probe: // // *ProbeDef_PingProbe // *ProbeDef_HttpProbe // *ProbeDef_DnsProbe // *ProbeDef_ExternalProbe // *ProbeDef_UdpProbe // *ProbeDef_UdpListenerProbe // *ProbeDef_GrpcProbe // *ProbeDef_TcpProbe // *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"` // 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: 101
func (*ProbeDef) Descriptor
deprecated
func (*ProbeDef) GetAdditionalLabel ¶ added in v0.10.5
func (x *ProbeDef) GetAdditionalLabel() []*AdditionalLabel
func (*ProbeDef) GetDebugOptions ¶ added in v0.10.2
func (x *ProbeDef) GetDebugOptions() *DebugOptions
func (*ProbeDef) GetDnsProbe ¶
func (*ProbeDef) GetExternalProbe ¶
func (*ProbeDef) GetGrpcProbe ¶ added in v0.11.4
func (*ProbeDef) GetHttpProbe ¶
func (*ProbeDef) GetInterval ¶ added in v0.11.4
func (*ProbeDef) GetIntervalMsec ¶
func (*ProbeDef) GetIpVersion ¶ added in v0.10.3
func (x *ProbeDef) GetIpVersion() ProbeDef_IPVersion
func (*ProbeDef) GetLatencyDistribution ¶
func (*ProbeDef) GetLatencyMetricName ¶ added in v0.11.4
func (*ProbeDef) GetLatencyUnit ¶
func (*ProbeDef) GetNegativeTest ¶ added in v0.11.5
func (*ProbeDef) GetPingProbe ¶
func (*ProbeDef) GetSchedule ¶ added in v0.13.3
func (*ProbeDef) GetSourceInterface ¶ added in v0.10.2
func (*ProbeDef) GetSourceIp ¶ added in v0.10.2
func (*ProbeDef) GetSourceIpConfig ¶ added in v0.10.2
func (m *ProbeDef) GetSourceIpConfig() isProbeDef_SourceIpConfig
func (*ProbeDef) GetStatsExportIntervalMsec ¶ added in v0.10.3
func (*ProbeDef) GetTargets ¶
func (x *ProbeDef) GetTargets() *proto.TargetsDef
func (*ProbeDef) GetTcpProbe ¶ added in v0.11.5
func (*ProbeDef) GetTimeout ¶ added in v0.11.4
func (*ProbeDef) GetTimeoutMsec ¶
func (*ProbeDef) GetType ¶
func (x *ProbeDef) GetType() ProbeDef_Type
func (*ProbeDef) GetUdpListenerProbe ¶
func (*ProbeDef) GetUdpProbe ¶
func (*ProbeDef) GetUserDefinedProbe ¶
func (*ProbeDef) GetValidator ¶
func (*ProbeDef) ProtoMessage ¶
func (*ProbeDef) ProtoMessage()
func (*ProbeDef) ProtoReflect ¶ added in v0.11.4
func (x *ProbeDef) ProtoReflect() protoreflect.Message
type ProbeDef_DnsProbe ¶
type ProbeDef_ExternalProbe ¶
type ProbeDef_GrpcProbe ¶ added in v0.11.4
type ProbeDef_HttpProbe ¶
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) Descriptor() protoreflect.EnumDescriptor
func (ProbeDef_IPVersion) Enum ¶ added in v0.10.3
func (x ProbeDef_IPVersion) Enum() *ProbeDef_IPVersion
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 (x ProbeDef_IPVersion) Number() protoreflect.EnumNumber
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) Type() protoreflect.EnumType
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_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_TcpProbe ¶ added in v0.11.5
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 // 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) Descriptor() protoreflect.EnumDescriptor
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 (x ProbeDef_Type) Number() protoreflect.EnumNumber
func (ProbeDef_Type) String ¶
func (x ProbeDef_Type) String() string
func (ProbeDef_Type) Type ¶ added in v0.11.4
func (ProbeDef_Type) Type() protoreflect.EnumType
func (*ProbeDef_Type) UnmarshalJSON
deprecated
func (x *ProbeDef_Type) UnmarshalJSON(b []byte) error
Deprecated: Do not use.
type ProbeDef_UdpProbe ¶
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) GetEndTime ¶ added in v0.13.3
func (*Schedule) GetEndWeekday ¶ added in v0.13.3
func (x *Schedule) GetEndWeekday() Schedule_Weekday
func (*Schedule) GetStartTime ¶ added in v0.13.3
func (*Schedule) GetStartWeekday ¶ added in v0.13.3
func (x *Schedule) GetStartWeekday() Schedule_Weekday
func (*Schedule) GetTimezone ¶ added in v0.13.3
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
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) Descriptor() protoreflect.EnumDescriptor
func (Schedule_ScheduleType) Enum ¶ added in v0.13.3
func (x Schedule_ScheduleType) Enum() *Schedule_ScheduleType
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 (x Schedule_ScheduleType) Number() protoreflect.EnumNumber
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) Type() protoreflect.EnumType
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) Descriptor() protoreflect.EnumDescriptor
func (Schedule_Weekday) Enum ¶ added in v0.13.3
func (x Schedule_Weekday) Enum() *Schedule_Weekday
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 (x Schedule_Weekday) Number() protoreflect.EnumNumber
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) Type() protoreflect.EnumType
func (*Schedule_Weekday) UnmarshalJSON
deprecated
added in
v0.13.3
func (x *Schedule_Weekday) UnmarshalJSON(b []byte) error
Deprecated: Do not use.