thanosrule

package
v0.6.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 14, 2019 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AlertingRule

type AlertingRule struct {
	*rules.AlertingRule
	PartialResponseStrategy storepb.PartialResponseStrategy
}

type Group

type Group struct {
	*rules.Group
	PartialResponseStrategy storepb.PartialResponseStrategy
}

type Managers

func (Managers) AlertingRules

func (m Managers) AlertingRules() []AlertingRule

func (Managers) RuleGroups

func (m Managers) RuleGroups() []Group

func (*Managers) Update

func (m *Managers) Update(dataDir string, evalInterval time.Duration, files []string) error

Update updates rules from given files to all managers we hold. We decide which groups should go where, based on special field in RuleGroup file.

type RuleGroup

type RuleGroup struct {
	rulefmt.RuleGroup
	PartialResponseStrategy *storepb.PartialResponseStrategy
}

func (RuleGroup) MarshalYAML

func (r RuleGroup) MarshalYAML() (interface{}, error)

func (*RuleGroup) UnmarshalYAML

func (r *RuleGroup) UnmarshalYAML(unmarshal func(interface{}) error) error

type RuleGroups

type RuleGroups struct {
	Groups []RuleGroup `yaml:"groups"`
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL