Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewFileWatcher ¶
func NewFileWatcher(fileName string) *fileWatcher
Types ¶
type Config ¶
type Config struct { // The protobuf containing the actual configuration values. pb.AlertManagerConfig }
Config encapsulates the configuration of an Alert Manager instance. It wraps the raw configuration protocol buffer to be able to add custom methods to it.
func LoadFromFile ¶
func LoadFromString ¶
func MustLoadFromFile ¶
func (Config) AggregationRules ¶
func (c Config) AggregationRules() manager.AggregationRules
AggregationRules returns all the AggregationRules in a Config object.
func (Config) InhibitRules ¶
func (c Config) InhibitRules() manager.InhibitRules
InhibitRules returns all the InhibitRules in a Config object.
type ReloadCallback ¶
type ReloadCallback func(*Config)
type Watcher ¶
type Watcher interface {
Watch(c ReloadCallback)
}
Click to show internal directories.
Click to hide internal directories.