Documentation ¶
Index ¶
- type AlertStore
- func (a *AlertStore) DeleteAlertConfig(ctx context.Context, user string) error
- func (a *AlertStore) GetAlertConfig(ctx context.Context, user string) (alerts.AlertConfigDesc, error)
- func (a *AlertStore) ListAlertConfigs(ctx context.Context) (map[string]alerts.AlertConfigDesc, error)
- func (a *AlertStore) SetAlertConfig(ctx context.Context, cfg alerts.AlertConfigDesc) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AlertStore ¶
type AlertStore struct {
// contains filtered or unexported fields
}
AlertStore allows cortex alertmanager configs to be stored using an object store backend.
func NewAlertStore ¶
func NewAlertStore(client chunk.ObjectClient) *AlertStore
NewAlertStore returns a new AlertStore
func (*AlertStore) DeleteAlertConfig ¶
func (a *AlertStore) DeleteAlertConfig(ctx context.Context, user string) error
DeleteAlertConfig deletes a specified user's alertmanager configuration
func (*AlertStore) GetAlertConfig ¶
func (a *AlertStore) GetAlertConfig(ctx context.Context, user string) (alerts.AlertConfigDesc, error)
GetAlertConfig returns a specified user's alertmanager configuration
func (*AlertStore) ListAlertConfigs ¶
func (a *AlertStore) ListAlertConfigs(ctx context.Context) (map[string]alerts.AlertConfigDesc, error)
ListAlertConfigs returns all of the active alert configs in this store
func (*AlertStore) SetAlertConfig ¶
func (a *AlertStore) SetAlertConfig(ctx context.Context, cfg alerts.AlertConfigDesc) error
SetAlertConfig sets a specified user's alertmanager configuration
Click to show internal directories.
Click to hide internal directories.