objectclient

package
v0.0.0-...-cae4bf4 Latest Latest
Warning

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

Go to latest
Published: Oct 24, 2020 License: Apache-2.0 Imports: 6 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) *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

Jump to

Keyboard shortcuts

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