Documentation
¶
Index ¶
- Constants
- Variables
- type ProbeDef
- func (*ProbeDef) Descriptor() ([]byte, []int)
- func (*ProbeDef) ExtensionRangeArray() []proto.ExtensionRange
- func (m *ProbeDef) GetDnsProbe() *proto6.ProbeConf
- func (m *ProbeDef) GetExternalProbe() *proto7.ProbeConf
- func (m *ProbeDef) GetHttpProbe() *proto5.ProbeConf
- func (m *ProbeDef) GetIntervalMsec() int32
- func (m *ProbeDef) GetLatencyDistribution() *proto2.Dist
- func (m *ProbeDef) GetLatencyUnit() string
- func (m *ProbeDef) GetName() string
- func (m *ProbeDef) GetPingProbe() *proto4.ProbeConf
- func (m *ProbeDef) GetProbe() isProbeDef_Probe
- func (m *ProbeDef) GetRunOn() string
- func (m *ProbeDef) GetTargets() *proto1.TargetsDef
- func (m *ProbeDef) GetTimeoutMsec() int32
- func (m *ProbeDef) GetType() ProbeDef_Type
- func (m *ProbeDef) GetUdpListenerProbe() *proto9.ProbeConf
- func (m *ProbeDef) GetUdpProbe() *proto8.ProbeConf
- func (m *ProbeDef) GetUserDefinedProbe() string
- func (m *ProbeDef) GetValidator() []*proto3.Validator
- func (*ProbeDef) ProtoMessage()
- func (m *ProbeDef) Reset()
- func (m *ProbeDef) String() string
- func (m *ProbeDef) XXX_DiscardUnknown()
- func (m *ProbeDef) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *ProbeDef) XXX_Merge(src proto.Message)
- func (*ProbeDef) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, ...)
- func (m *ProbeDef) XXX_Size() int
- func (m *ProbeDef) XXX_Unmarshal(b []byte) error
- type ProbeDef_DnsProbe
- type ProbeDef_ExternalProbe
- type ProbeDef_HttpProbe
- type ProbeDef_PingProbe
- type ProbeDef_Type
- type ProbeDef_UdpListenerProbe
- type ProbeDef_UdpProbe
- type ProbeDef_UserDefinedProbe
Constants ¶
View Source
const Default_ProbeDef_IntervalMsec int32 = 2000
View Source
const Default_ProbeDef_LatencyUnit string = "us"
View Source
const Default_ProbeDef_TimeoutMsec int32 = 1000
Variables ¶
View Source
var ProbeDef_Type_name = map[int32]string{
0: "PING",
1: "HTTP",
2: "DNS",
3: "EXTERNAL",
4: "UDP",
5: "UDP_LISTENER",
98: "EXTENSION",
99: "USER_DEFINED",
}
View Source
var ProbeDef_Type_value = map[string]int32{
"PING": 0,
"HTTP": 1,
"DNS": 2,
"EXTERNAL": 3,
"UDP": 4,
"UDP_LISTENER": 5,
"EXTENSION": 98,
"USER_DEFINED": 99,
}
Functions ¶
This section is empty.
Types ¶
type ProbeDef ¶
type ProbeDef struct { 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"` // Which machines this probe should run on. If defined, cloudprober will run // this probe only if machine's hostname matches this value. RunOn *string `protobuf:"bytes,3,opt,name=run_on,json=runOn" json:"run_on,omitempty"` // Interval between two probes IntervalMsec *int32 `protobuf:"varint,4,opt,name=interval_msec,json=intervalMsec,def=2000" json:"interval_msec,omitempty"` // Timeout for each probe TimeoutMsec *int32 `protobuf:"varint,5,opt,name=timeout_msec,json=timeoutMsec,def=1000" json:"timeout_msec,omitempty"` // Targets for the probe Targets *proto1.TargetsDef `protobuf:"bytes,6,req,name=targets" json:"targets,omitempty"` // Latency distribution. If specified, latency is stored as a distribution. LatencyDistribution *proto2.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"` // Validators are in experimental phase right now and can change at any time. // They only work for ping and http probes right now. Validator []*proto3.Validator `protobuf:"bytes,9,rep,name=validator" json:"validator,omitempty"` // Types that are valid to be assigned to Probe: // *ProbeDef_PingProbe // *ProbeDef_HttpProbe // *ProbeDef_DnsProbe // *ProbeDef_ExternalProbe // *ProbeDef_UdpProbe // *ProbeDef_UdpListenerProbe // *ProbeDef_UserDefinedProbe Probe isProbeDef_Probe `protobuf_oneof:"probe"` XXX_NoUnkeyedLiteral struct{} `json:"-"` proto.XXX_InternalExtensions `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*ProbeDef) Descriptor ¶
func (*ProbeDef) ExtensionRangeArray ¶
func (*ProbeDef) ExtensionRangeArray() []proto.ExtensionRange
func (*ProbeDef) GetDnsProbe ¶
func (*ProbeDef) GetExternalProbe ¶
func (*ProbeDef) GetHttpProbe ¶
func (*ProbeDef) GetIntervalMsec ¶
func (*ProbeDef) GetLatencyDistribution ¶
func (*ProbeDef) GetLatencyUnit ¶
func (*ProbeDef) GetPingProbe ¶
func (*ProbeDef) GetTargets ¶
func (m *ProbeDef) GetTargets() *proto1.TargetsDef
func (*ProbeDef) GetTimeoutMsec ¶
func (*ProbeDef) GetType ¶
func (m *ProbeDef) GetType() ProbeDef_Type
func (*ProbeDef) GetUdpListenerProbe ¶
func (*ProbeDef) GetUdpProbe ¶
func (*ProbeDef) GetUserDefinedProbe ¶
func (*ProbeDef) GetValidator ¶
func (*ProbeDef) ProtoMessage ¶
func (*ProbeDef) ProtoMessage()
func (*ProbeDef) XXX_DiscardUnknown ¶
func (m *ProbeDef) XXX_DiscardUnknown()
func (*ProbeDef) XXX_Marshal ¶
func (*ProbeDef) XXX_OneofFuncs ¶
func (*ProbeDef) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{})
XXX_OneofFuncs is for the internal use of the proto package.
func (*ProbeDef) XXX_Unmarshal ¶
type ProbeDef_DnsProbe ¶
type ProbeDef_ExternalProbe ¶
type ProbeDef_HttpProbe ¶
type ProbeDef_PingProbe ¶
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 // 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) Enum ¶
func (x ProbeDef_Type) Enum() *ProbeDef_Type
func (ProbeDef_Type) EnumDescriptor ¶
func (ProbeDef_Type) EnumDescriptor() ([]byte, []int)
func (ProbeDef_Type) String ¶
func (x ProbeDef_Type) String() string
func (*ProbeDef_Type) UnmarshalJSON ¶
func (x *ProbeDef_Type) UnmarshalJSON(data []byte) error
type ProbeDef_UdpProbe ¶
type ProbeDef_UserDefinedProbe ¶
type ProbeDef_UserDefinedProbe struct {
UserDefinedProbe string `protobuf:"bytes,99,opt,name=user_defined_probe,json=userDefinedProbe,oneof"`
}
Click to show internal directories.
Click to hide internal directories.