Documentation ¶
Index ¶
- type Store
- func (f *Store) DeleteAlertConfig(ctx context.Context, user string) error
- func (f *Store) GetAlertConfig(ctx context.Context, user string) (alerts.AlertConfigDesc, error)
- func (f *Store) ListAlertConfigs(ctx context.Context) (map[string]alerts.AlertConfigDesc, error)
- func (f *Store) SetAlertConfig(ctx context.Context, cfg alerts.AlertConfigDesc) error
- type StoreConfig
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Store ¶
type Store struct {
// contains filtered or unexported fields
}
Store is used to load user alertmanager configs from a local disk
func NewStore ¶
func NewStore(cfg StoreConfig) (*Store, error)
NewStore returns a new file alert store.
func (*Store) DeleteAlertConfig ¶ added in v1.3.0
func (*Store) GetAlertConfig ¶ added in v1.3.0
func (*Store) ListAlertConfigs ¶
ListAlertConfigs returns a list of each users alertmanager config.
func (*Store) SetAlertConfig ¶ added in v1.3.0
type StoreConfig ¶
type StoreConfig struct {
Path string `yaml:"path"`
}
StoreConfig configures a static file alertmanager store
func (*StoreConfig) RegisterFlags ¶
func (cfg *StoreConfig) RegisterFlags(f *flag.FlagSet)
RegisterFlags registers flags related to the alertmanager file store
Click to show internal directories.
Click to hide internal directories.