Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Checker ¶
type Checker struct {
Name string
// NOTE(motemen): We make use of config.PluginConfig as it happens
// to have Command field which was used by metrics.pluginGenerator.
// If the configuration of checks.Checker and metrics.pluginGenerator goes different ones,
// we should reconcider using config.PluginConfig.
Config config.PluginConfig
}
Checker is the main interface of check monitoring. It invokes its given command and transforms the result to a Report to be sent to Mackerel periodically.
type Report ¶
type Report struct {
Name string
Status Status
Message string
OccurredAt time.Time
NotificationInterval *int32
}
Report is what Checker produces by invoking its command.
Click to show internal directories.
Click to hide internal directories.