Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type HTTPConf ¶
type HTTPConf struct { URL string `yaml:"url"` RCodes []int `yaml:"rcodes"` UserAgent string `yaml:"useragent"` Insecure bool `yaml:"insecure"` }
HTTPConf is exported to receive YAML configuration.
func (HTTPConf) Instrument ¶
func (c HTTPConf) Instrument() map[string]prometheus.Collector
Instrument is a no-op to implement the `Configurer` interface.
func (HTTPConf) MakeProber ¶
MakeProber constructs a `HTTPProbe` object from the contents of the bound `HTTPConf` object. If the `HTTPConf` cannot be validated, an error appropriate for end-user consumption is returned instead.
func (HTTPConf) UnmarshalSettings ¶
func (c HTTPConf) UnmarshalSettings(settings []byte) (probers.Configurer, error)
UnmarshalSettings takes YAML as bytes and unmarshals it to the to an HTTPConf object.
Click to show internal directories.
Click to hide internal directories.