Version: v0.0.0-...-216d9dd Latest Latest

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

Go to latest
Published: Sep 23, 2015 License: Apache-2.0 Imports: 9 Imported by: 0




This section is empty.


This section is empty.


func NewFileWatcher

func NewFileWatcher(fileName string) *fileWatcher


type Config

type Config struct {
	// The protobuf containing the actual configuration values.

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 LoadFromFile(fileName string) (Config, error)

func LoadFromString

func LoadFromString(configStr string) (Config, error)

func MustLoadFromFile

func MustLoadFromFile(fileName string) Config

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.

func (Config) String

func (c Config) String() string

String returns an ASCII serialization of the loaded configuration protobuf.

func (Config) Validate

func (c Config) Validate() error

Validate checks an entire parsed Config for the validity of its fields.

type ReloadCallback

type ReloadCallback func(*Config)

type Watcher

type Watcher interface {
	Watch(c ReloadCallback)


Path Synopsis
Package io_prometheus_alertmanager is a generated protocol buffer package.
Package io_prometheus_alertmanager is a generated protocol buffer package.

Jump to

Keyboard shortcuts

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