Documentation ¶
Overview ¶
Package http is a generated protocol buffer package.
It is generated from these files:
github.com/google/cloudprober/probes/http/config.proto
It has these top-level messages:
ProbeConf
Package http implements HTTP probe type.
Index ¶
- Constants
- Variables
- type Probe
- type ProbeConf
- func (*ProbeConf) Descriptor() ([]byte, []int)
- func (m *ProbeConf) GetExportResponseAsMetrics() bool
- 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) GetStatsExportIntervalMsec() int32
- func (*ProbeConf) ProtoMessage()
- func (m *ProbeConf) Reset()
- func (m *ProbeConf) String() string
- type ProbeConf_ProtocolType
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_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 Probe ¶
type Probe struct {
// contains filtered or unexported fields
}
Probe holds aggregate information about all probe runs, per-target.
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"` // 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 */ // 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_unrecognized []byte `json:"-"` }
func (*ProbeConf) Descriptor ¶
func (*ProbeConf) GetExportResponseAsMetrics ¶
func (*ProbeConf) GetProtocol ¶
func (m *ProbeConf) GetProtocol() ProbeConf_ProtocolType
func (*ProbeConf) GetRelativeUrl ¶
func (*ProbeConf) GetRequestsIntervalMsec ¶
func (*ProbeConf) GetRequestsPerProbe ¶
func (*ProbeConf) GetResolveFirst ¶
func (*ProbeConf) GetStatsExportIntervalMsec ¶
func (*ProbeConf) ProtoMessage ¶
func (*ProbeConf) ProtoMessage()
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
Click to show internal directories.
Click to hide internal directories.