Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MonConf ¶
type MonConf struct {
Period config.Duration `yaml:"period"`
Kind string `yaml:"kind" validate:"required,oneof=DNS HTTP CRL TLS TCP"`
Settings probers.Settings `yaml:"settings" validate:"min=1,dive"`
}
MonConf is exported to receive YAML configuration in `ObsConf`.
type ObsConf ¶
type ObsConf struct {
DebugAddr string `yaml:"debugaddr" validate:"omitempty,hostname_port"`
Buckets []float64 `yaml:"buckets" validate:"min=1,dive"`
Syslog cmd.SyslogConfig `yaml:"syslog"`
OpenTelemetry cmd.OpenTelemetryConfig
MonConfs []*MonConf `yaml:"monitors" validate:"min=1,dive"`
}
ObsConf is exported to receive YAML configuration.
func (*ObsConf) MakeObserver ¶
MakeObserver constructs an `Observer` object from the contents of the bound `ObsConf`. If the `ObsConf` cannot be validated, an error appropriate for end-user consumption is returned instead.
Click to show internal directories.
Click to hide internal directories.