Documentation ¶
Index ¶
- func IsInvalidConfig(err error) bool
- func IsNotFound(err error) bool
- type AlertManager
- func (am *AlertManager) CreateSilence(s *Silence) error
- func (am *AlertManager) DeleteSilenceByComment(comment string) error
- func (am *AlertManager) DeleteSilenceByID(id string) error
- func (am *AlertManager) GetSilenceByComment(comment string) (*Silence, error)
- func (am *AlertManager) ListSilences() ([]Silence, error)
- func (am *AlertManager) UpdateSilence(s *Silence) error
- type Config
- type Matcher
- type Silence
- type Status
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsInvalidConfig ¶
IsInvalidConfig asserts invalidConfigError.
Types ¶
type AlertManager ¶
type AlertManager struct {
// contains filtered or unexported fields
}
func New ¶
func New(config Config) (*AlertManager, error)
func (*AlertManager) CreateSilence ¶
func (am *AlertManager) CreateSilence(s *Silence) error
func (*AlertManager) DeleteSilenceByComment ¶
func (am *AlertManager) DeleteSilenceByComment(comment string) error
func (*AlertManager) DeleteSilenceByID ¶ added in v0.9.0
func (am *AlertManager) DeleteSilenceByID(id string) error
func (*AlertManager) GetSilenceByComment ¶
func (am *AlertManager) GetSilenceByComment(comment string) (*Silence, error)
func (*AlertManager) ListSilences ¶
func (am *AlertManager) ListSilences() ([]Silence, error)
func (*AlertManager) UpdateSilence ¶ added in v0.8.0
func (am *AlertManager) UpdateSilence(s *Silence) error
Click to show internal directories.
Click to hide internal directories.