objectclient

package
v1.8.0 Latest Latest
Warning

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

Go to latest
Published: Mar 25, 2021 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

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) 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) ListAllUsers

func (a *AlertStore) ListAllUsers(ctx context.Context) ([]string, error)

ListAllUsers implements alertstore.AlertStore.

func (*AlertStore) SetAlertConfig

func (a *AlertStore) SetAlertConfig(ctx context.Context, cfg alertspb.AlertConfigDesc) error

SetAlertConfig implements alertstore.AlertStore.

Jump to

Keyboard shortcuts

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