Documentation
¶
Index ¶
- type AlertStore
- func (a *AlertStore) DeleteAlertConfig(ctx context.Context, user string) error
- func (a *AlertStore) DeleteFullState(ctx context.Context, user string) error
- func (a *AlertStore) GetAlertConfig(ctx context.Context, user string) (alertspb.AlertConfigDesc, error)
- func (a *AlertStore) GetAlertConfigs(ctx context.Context, userIDs []string) (map[string]alertspb.AlertConfigDesc, error)
- func (a *AlertStore) GetFullState(ctx context.Context, user string) (alertspb.FullStateDesc, error)
- func (a *AlertStore) ListAllUsers(ctx context.Context) ([]string, error)
- func (a *AlertStore) ListUsersWithFullState(ctx context.Context) ([]string, error)
- func (a *AlertStore) SetAlertConfig(ctx context.Context, cfg alertspb.AlertConfigDesc) error
- func (a *AlertStore) SetFullState(ctx context.Context, user string, cfg alertspb.FullStateDesc) 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, logger log.Logger) *AlertStore
NewAlertStore returns a new AlertStore
func (*AlertStore) DeleteAlertConfig ¶
func (a *AlertStore) DeleteAlertConfig(ctx context.Context, user string) error
DeleteAlertConfig implements alertstore.AlertStore.
func (*AlertStore) DeleteFullState ¶ added in v1.9.0
func (a *AlertStore) DeleteFullState(ctx context.Context, user string) error
DeleteFullState implements alertstore.AlertStore.
func (*AlertStore) GetAlertConfig ¶
func (a *AlertStore) GetAlertConfig(ctx context.Context, user string) (alertspb.AlertConfigDesc, error)
GetAlertConfig implements alertstore.AlertStore.
func (*AlertStore) GetAlertConfigs ¶
func (a *AlertStore) GetAlertConfigs(ctx context.Context, userIDs []string) (map[string]alertspb.AlertConfigDesc, error)
GetAlertConfigs implements alertstore.AlertStore.
func (*AlertStore) GetFullState ¶ added in v1.9.0
func (a *AlertStore) GetFullState(ctx context.Context, user string) (alertspb.FullStateDesc, error)
GetFullState implements alertstore.AlertStore.
func (*AlertStore) ListAllUsers ¶
func (a *AlertStore) ListAllUsers(ctx context.Context) ([]string, error)
ListAllUsers implements alertstore.AlertStore.
func (*AlertStore) ListUsersWithFullState ¶ added in v1.10.0
func (a *AlertStore) ListUsersWithFullState(ctx context.Context) ([]string, error)
ListUsersWithFullState implements alertstore.AlertStore.
func (*AlertStore) SetAlertConfig ¶
func (a *AlertStore) SetAlertConfig(ctx context.Context, cfg alertspb.AlertConfigDesc) error
SetAlertConfig implements alertstore.AlertStore.
func (*AlertStore) SetFullState ¶ added in v1.9.0
func (a *AlertStore) SetFullState(ctx context.Context, user string, cfg alertspb.FullStateDesc) error
SetFullState implements alertstore.AlertStore.
Click to show internal directories.
Click to hide internal directories.