alerts

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Nov 2, 2026 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const PluginKind = "AlertManagerAlertsQuery"

Variables

This section is empty.

Functions

func AlertsQuery

func AlertsQuery(options ...Option) query.Option

Types

type Builder

type Builder struct {
	PluginSpec `json:",inline" yaml:",inline"`
}

type Option

type Option func(plugin *Builder) error

func Active

func Active(active bool) Option

func Datasource

func Datasource(datasourceName string) Option

func Filters

func Filters(filters ...string) Option

func Inhibited

func Inhibited(inhibited bool) Option

func Receiver

func Receiver(receiver string) Option

func Silenced

func Silenced(silenced bool) Option

func Unprocessed

func Unprocessed(unprocessed bool) Option

type PluginSpec

type PluginSpec struct {
	Datasource  *datasource.Selector `json:"datasource,omitempty" yaml:"datasource,omitempty"`
	Filters     []string             `json:"filters,omitempty" yaml:"filters,omitempty"`
	Active      *bool                `json:"active,omitempty" yaml:"active,omitempty"`
	Silenced    *bool                `json:"silenced,omitempty" yaml:"silenced,omitempty"`
	Inhibited   *bool                `json:"inhibited,omitempty" yaml:"inhibited,omitempty"`
	Unprocessed *bool                `json:"unprocessed,omitempty" yaml:"unprocessed,omitempty"`
	Receiver    string               `json:"receiver,omitempty" yaml:"receiver,omitempty"`
}

Jump to

Keyboard shortcuts

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