Documentation
¶
Index ¶
- Variables
- type AgeRule
- type AliveCheck
- type CountRule
- type SnapCheck
- func (self *SnapCheck) Reset() *SnapCheck
- func (self *SnapCheck) Run(ctx context.Context, j *config.JobEnum) error
- func (self *SnapCheck) UpdateStatus(jobConfig *config.JobEnum) error
- func (self *SnapCheck) WithCountThresholds(warn, crit uint) *SnapCheck
- func (self *SnapCheck) WithCounts(v bool) *SnapCheck
- func (self *SnapCheck) WithMaxProcs(n int) *SnapCheck
- func (self *SnapCheck) WithOldest(v bool) *SnapCheck
- func (self *SnapCheck) WithPrefix(s string) *SnapCheck
- func (self *SnapCheck) WithResponse(resp *monitoringplugin.Response) *SnapCheck
- func (self *SnapCheck) WithThresholds(warn, crit time.Duration) *SnapCheck
Constants ¶
This section is empty.
Variables ¶
View Source
var Subcommand = &cli.Subcommand{ Use: "monitor", Short: "Icinga/Nagios health checks", SetupCobra: func(cmd *cobra.Command) { cmd.Args = cobra.ExactArgs(0) }, SetupSubcommands: func() []*cli.Subcommand { return []*cli.Subcommand{aliveCmd, snapshotsCmd} }, }
Functions ¶
This section is empty.
Types ¶
type AgeRule ¶ added in v0.9.6
type AgeRule struct {
*config.MonitorCreation
// contains filtered or unexported fields
}
func AgeRulesFromConfig ¶ added in v0.9.6
func AgeRulesFromConfig(in []config.MonitorCreation) ([]*AgeRule, error)
func NewAgeRule ¶ added in v0.9.6
func NewAgeRule(m *config.MonitorCreation) (*AgeRule, error)
type AliveCheck ¶
type AliveCheck struct {
// contains filtered or unexported fields
}
func NewAliveCheck ¶
func NewAliveCheck(c *status.Client) *AliveCheck
func (*AliveCheck) OutputAndExit ¶
func (self *AliveCheck) OutputAndExit() error
func (*AliveCheck) WithThresholds ¶
func (self *AliveCheck) WithThresholds(warn, crit time.Duration) *AliveCheck
type CountRule ¶ added in v0.9.6
type CountRule struct {
*config.MonitorCount
// contains filtered or unexported fields
}
func CountRulesFromConfig ¶ added in v0.9.6
func CountRulesFromConfig(in []config.MonitorCount) ([]*CountRule, error)
func NewCountRule ¶ added in v0.9.6
func NewCountRule(m *config.MonitorCount) (*CountRule, error)
type SnapCheck ¶
type SnapCheck struct {
// contains filtered or unexported fields
}
func NewSnapCheck ¶
func NewSnapCheck(resp *monitoringplugin.Response) *SnapCheck
func (*SnapCheck) UpdateStatus ¶
func (*SnapCheck) WithCountThresholds ¶
func (*SnapCheck) WithCounts ¶
func (*SnapCheck) WithMaxProcs ¶
func (*SnapCheck) WithOldest ¶
func (*SnapCheck) WithPrefix ¶
func (*SnapCheck) WithResponse ¶
func (self *SnapCheck) WithResponse(resp *monitoringplugin.Response, ) *SnapCheck
Click to show internal directories.
Click to hide internal directories.