alertmanager

package
v0.0.0-...-17d2063 Latest Latest
Warning

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

Go to latest
Published: Mar 17, 2026 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Loader

type Loader interface {
	GetAlerts(ctx context.Context, active, silenced, inhibited, unprocessed *bool, filter []string, receiver string) (models.GettableAlerts, error)
	GetSilences(ctx context.Context, filter []string) (models.GettableSilences, error)
}

Loader defines the interface for querying Alertmanager

type RealLoader

type RealLoader struct {
	// contains filtered or unexported fields
}

RealLoader implements Loader

func NewAlertmanagerClient

func NewAlertmanagerClient(apiConfig api.Config) (*RealLoader, error)

func (*RealLoader) GetAlerts

func (a *RealLoader) GetAlerts(ctx context.Context, active, silenced, inhibited, unprocessed *bool, filter []string, receiver string) (models.GettableAlerts, error)

func (*RealLoader) GetSilences

func (a *RealLoader) GetSilences(ctx context.Context, filter []string) (models.GettableSilences, error)

Jump to

Keyboard shortcuts

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