Documentation ¶
Index ¶
- Constants
- Variables
- type ProbeConf
- func (*ProbeConf) Descriptor() ([]byte, []int)
- func (m *ProbeConf) GetBody() string
- func (m *ProbeConf) GetExportResponseAsMetrics() bool
- func (m *ProbeConf) GetHeaders() []*ProbeConf_Header
- func (m *ProbeConf) GetIntegrityCheckPattern() string
- func (m *ProbeConf) GetMethod() ProbeConf_Method
- func (m *ProbeConf) GetPort() int32
- func (m *ProbeConf) GetProtocol() ProbeConf_ProtocolType
- func (m *ProbeConf) GetRelativeUrl() string
- func (m *ProbeConf) GetRequestsIntervalMsec() int32
- func (m *ProbeConf) GetRequestsPerProbe() int32
- func (m *ProbeConf) GetResolveFirst() bool
- func (m *ProbeConf) GetSource() isProbeConf_Source
- func (m *ProbeConf) GetSourceInterface() string
- func (m *ProbeConf) GetSourceIp() string
- func (m *ProbeConf) GetStatsExportIntervalMsec() int32
- func (*ProbeConf) ProtoMessage()
- func (m *ProbeConf) Reset()
- func (m *ProbeConf) String() string
- func (m *ProbeConf) XXX_DiscardUnknown()
- func (m *ProbeConf) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *ProbeConf) XXX_Merge(src proto.Message)
- func (*ProbeConf) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, ...)
- func (m *ProbeConf) XXX_Size() int
- func (m *ProbeConf) XXX_Unmarshal(b []byte) error
- type ProbeConf_Header
- func (*ProbeConf_Header) Descriptor() ([]byte, []int)
- func (m *ProbeConf_Header) GetName() string
- func (m *ProbeConf_Header) GetValue() string
- func (*ProbeConf_Header) ProtoMessage()
- func (m *ProbeConf_Header) Reset()
- func (m *ProbeConf_Header) String() string
- func (m *ProbeConf_Header) XXX_DiscardUnknown()
- func (m *ProbeConf_Header) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *ProbeConf_Header) XXX_Merge(src proto.Message)
- func (m *ProbeConf_Header) XXX_Size() int
- func (m *ProbeConf_Header) XXX_Unmarshal(b []byte) error
- type ProbeConf_Method
- type ProbeConf_ProtocolType
- type ProbeConf_SourceInterface
- type ProbeConf_SourceIp
Constants ¶
View Source
const Default_ProbeConf_ExportResponseAsMetrics bool = false
View Source
const Default_ProbeConf_RequestsIntervalMsec int32 = 25
View Source
const Default_ProbeConf_RequestsPerProbe int32 = 1
View Source
const Default_ProbeConf_ResolveFirst bool = false
View Source
const Default_ProbeConf_StatsExportIntervalMsec int32 = 10000
Variables ¶
View Source
var ProbeConf_Method_name = map[int32]string{
0: "GET",
1: "POST",
2: "PUT",
3: "HEAD",
4: "DELETE",
5: "PATCH",
6: "OPTIONS",
}
View Source
var ProbeConf_Method_value = map[string]int32{
"GET": 0,
"POST": 1,
"PUT": 2,
"HEAD": 3,
"DELETE": 4,
"PATCH": 5,
"OPTIONS": 6,
}
View Source
var ProbeConf_ProtocolType_name = map[int32]string{
0: "HTTP",
1: "HTTPS",
}
View Source
var ProbeConf_ProtocolType_value = map[string]int32{
"HTTP": 0,
"HTTPS": 1,
}
Functions ¶
This section is empty.
Types ¶
type ProbeConf ¶
type ProbeConf struct { // Which HTTP protocol to use Protocol *ProbeConf_ProtocolType `protobuf:"varint,1,opt,name=protocol,enum=cloudprober.probes.http.ProbeConf_ProtocolType,def=0" json:"protocol,omitempty"` // Relative URL (to append to all targets). Must begin with '/' RelativeUrl *string `protobuf:"bytes,2,opt,name=relative_url,json=relativeUrl" json:"relative_url,omitempty"` // Port, default is 80 for HTTP and 443 for HTTPS Port *int32 `protobuf:"varint,3,opt,name=port" json:"port,omitempty"` // Set the source address to send packets from, either by providing an address // or a network interface. Note: the source can also be configured dynamically // using an environment variable. // // Types that are valid to be assigned to Source: // *ProbeConf_SourceIp // *ProbeConf_SourceInterface Source isProbeConf_Source `protobuf_oneof:"source"` // Whether to resolve the target before making the request. If set to false, // we hand over the target and relative_url directly to the golang's HTTP // module, Otherwise, we resolve the target first to an IP address and // make a request using that while passing target name as Host header. ResolveFirst *bool `protobuf:"varint,4,opt,name=resolve_first,json=resolveFirst,def=0" json:"resolve_first,omitempty"` // Export response (body) count as a metric ExportResponseAsMetrics *bool `` /* 134-byte string literal not displayed */ // This field is now deprecated and doesn't do anything (except resulting in // a warning). It will be removed in the next release. For data integrity // checks, please use integrity validator. IntegrityCheckPattern *string `protobuf:"bytes,6,opt,name=integrity_check_pattern,json=integrityCheckPattern" json:"integrity_check_pattern,omitempty"` // HTTP request method Method *ProbeConf_Method `protobuf:"varint,7,opt,name=method,enum=cloudprober.probes.http.ProbeConf_Method,def=0" json:"method,omitempty"` // HTTP request headers Headers []*ProbeConf_Header `protobuf:"bytes,8,rep,name=headers" json:"headers,omitempty"` // Request body. Body *string `protobuf:"bytes,9,opt,name=body" json:"body,omitempty"` // Requests per probe RequestsPerProbe *int32 `protobuf:"varint,98,opt,name=requests_per_probe,json=requestsPerProbe,def=1" json:"requests_per_probe,omitempty"` // How long to wait between two requests to the same target RequestsIntervalMsec *int32 `protobuf:"varint,99,opt,name=requests_interval_msec,json=requestsIntervalMsec,def=25" json:"requests_interval_msec,omitempty"` // Export stats after these many milliseconds StatsExportIntervalMsec *int32 `` /* 140-byte string literal not displayed */ XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*ProbeConf) Descriptor ¶
func (*ProbeConf) GetExportResponseAsMetrics ¶
func (*ProbeConf) GetHeaders ¶
func (m *ProbeConf) GetHeaders() []*ProbeConf_Header
func (*ProbeConf) GetIntegrityCheckPattern ¶
func (*ProbeConf) GetMethod ¶
func (m *ProbeConf) GetMethod() ProbeConf_Method
func (*ProbeConf) GetProtocol ¶
func (m *ProbeConf) GetProtocol() ProbeConf_ProtocolType
func (*ProbeConf) GetRelativeUrl ¶
func (*ProbeConf) GetRequestsIntervalMsec ¶
func (*ProbeConf) GetRequestsPerProbe ¶
func (*ProbeConf) GetResolveFirst ¶
func (*ProbeConf) GetSourceInterface ¶
func (*ProbeConf) GetSourceIp ¶
func (*ProbeConf) GetStatsExportIntervalMsec ¶
func (*ProbeConf) ProtoMessage ¶
func (*ProbeConf) ProtoMessage()
func (*ProbeConf) XXX_DiscardUnknown ¶
func (m *ProbeConf) XXX_DiscardUnknown()
func (*ProbeConf) XXX_Marshal ¶
func (*ProbeConf) XXX_OneofFuncs ¶
func (*ProbeConf) 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 (*ProbeConf) XXX_Unmarshal ¶
type ProbeConf_Header ¶
type ProbeConf_Header struct { Name *string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"` Value *string `protobuf:"bytes,2,opt,name=value" json:"value,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*ProbeConf_Header) Descriptor ¶
func (*ProbeConf_Header) Descriptor() ([]byte, []int)
func (*ProbeConf_Header) GetName ¶
func (m *ProbeConf_Header) GetName() string
func (*ProbeConf_Header) GetValue ¶
func (m *ProbeConf_Header) GetValue() string
func (*ProbeConf_Header) ProtoMessage ¶
func (*ProbeConf_Header) ProtoMessage()
func (*ProbeConf_Header) Reset ¶
func (m *ProbeConf_Header) Reset()
func (*ProbeConf_Header) String ¶
func (m *ProbeConf_Header) String() string
func (*ProbeConf_Header) XXX_DiscardUnknown ¶
func (m *ProbeConf_Header) XXX_DiscardUnknown()
func (*ProbeConf_Header) XXX_Marshal ¶
func (m *ProbeConf_Header) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ProbeConf_Header) XXX_Merge ¶
func (dst *ProbeConf_Header) XXX_Merge(src proto.Message)
func (*ProbeConf_Header) XXX_Size ¶
func (m *ProbeConf_Header) XXX_Size() int
func (*ProbeConf_Header) XXX_Unmarshal ¶
func (m *ProbeConf_Header) XXX_Unmarshal(b []byte) error
type ProbeConf_Method ¶
type ProbeConf_Method int32
const ( ProbeConf_GET ProbeConf_Method = 0 ProbeConf_POST ProbeConf_Method = 1 ProbeConf_PUT ProbeConf_Method = 2 ProbeConf_HEAD ProbeConf_Method = 3 ProbeConf_DELETE ProbeConf_Method = 4 ProbeConf_PATCH ProbeConf_Method = 5 ProbeConf_OPTIONS ProbeConf_Method = 6 )
const Default_ProbeConf_Method ProbeConf_Method = ProbeConf_GET
func (ProbeConf_Method) Enum ¶
func (x ProbeConf_Method) Enum() *ProbeConf_Method
func (ProbeConf_Method) EnumDescriptor ¶
func (ProbeConf_Method) EnumDescriptor() ([]byte, []int)
func (ProbeConf_Method) String ¶
func (x ProbeConf_Method) String() string
func (*ProbeConf_Method) UnmarshalJSON ¶
func (x *ProbeConf_Method) UnmarshalJSON(data []byte) error
type ProbeConf_ProtocolType ¶
type ProbeConf_ProtocolType int32
const ( ProbeConf_HTTP ProbeConf_ProtocolType = 0 ProbeConf_HTTPS ProbeConf_ProtocolType = 1 )
const Default_ProbeConf_Protocol ProbeConf_ProtocolType = ProbeConf_HTTP
func (ProbeConf_ProtocolType) Enum ¶
func (x ProbeConf_ProtocolType) Enum() *ProbeConf_ProtocolType
func (ProbeConf_ProtocolType) EnumDescriptor ¶
func (ProbeConf_ProtocolType) EnumDescriptor() ([]byte, []int)
func (ProbeConf_ProtocolType) String ¶
func (x ProbeConf_ProtocolType) String() string
func (*ProbeConf_ProtocolType) UnmarshalJSON ¶
func (x *ProbeConf_ProtocolType) UnmarshalJSON(data []byte) error
type ProbeConf_SourceInterface ¶
type ProbeConf_SourceInterface struct {
SourceInterface string `protobuf:"bytes,11,opt,name=source_interface,json=sourceInterface,oneof"`
}
type ProbeConf_SourceIp ¶
type ProbeConf_SourceIp struct {
SourceIp string `protobuf:"bytes,10,opt,name=source_ip,json=sourceIp,oneof"`
}
Click to show internal directories.
Click to hide internal directories.