Documentation ¶
Index ¶
- Constants
- Variables
- func NewDuplicateError(name string) error
- func NewMonitorInitError(err error) error
- func NewNotExistsError(name string) error
- func NewSubMonitorError(err error) error
- func NewYAMLDecodeError(err error) error
- type Config
- type Configs
- type DuplicateError
- type InitError
- type NotExistsError
- type SubConfig
- type SubMonitorError
- type YAMLDecodeError
Constants ¶
Variables ¶
Functions ¶
func NewDuplicateError ¶
func NewMonitorInitError ¶
func NewNotExistsError ¶
func NewSubMonitorError ¶
func NewYAMLDecodeError ¶
Types ¶
type Config ¶
type Config interface { log.LoggerGetter Name() string Run(context.Context) error Validate() error }
Config is an interface to manage particular monitor.
type Configs ¶
type Configs []Config
Configs type of array Config.
func (Configs) JSONSchema ¶
func (Configs) JSONSchema() *jsonschema.Schema
func (*Configs) UnmarshalYAML ¶
UnmarshalYAML is an unmarshaller for gopkg.in/yaml.v3 to parse YAML into `Config` interface.
type DuplicateError ¶
type DuplicateError struct {
Name string
}
func (DuplicateError) Error ¶
func (err DuplicateError) Error() string
type NotExistsError ¶
type NotExistsError struct {
Name string
}
func (NotExistsError) Error ¶
func (err NotExistsError) Error() string
type SubConfig ¶
type SubConfig interface { Init(context.Context, *logrus.Entry) error Run(context.Context) error Validate() error }
SubConfig is an interface to manage particular typed monitor.
type SubMonitorError ¶
type SubMonitorError struct {
Err error
}
func (SubMonitorError) Error ¶
func (err SubMonitorError) Error() string
func (SubMonitorError) Unwrap ¶
func (err SubMonitorError) Unwrap() error
type YAMLDecodeError ¶
type YAMLDecodeError struct {
Err error
}
func (YAMLDecodeError) Error ¶
func (err YAMLDecodeError) Error() string
func (YAMLDecodeError) Unwrap ¶
func (err YAMLDecodeError) Unwrap() error
Click to show internal directories.
Click to hide internal directories.