A simple monitoring solution written in Go (work in progress)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

14 lines
274 B

package config
type Check struct {
Name string `yaml:"name"`
Type string `yaml:"type"`
Attrs map[string]interface{} `yaml:",inline"`
}
func (chk Check) NameOrType() string {
if chk.Name == "" {
return chk.Type
}
return chk.Name
}