Documentation ¶
Index ¶
- type AlertManagerSilenceClient
- func (ams *AlertManagerSilenceClient) Create(matchers amv2Models.Matchers, startsAt strfmt.DateTime, endsAt strfmt.DateTime, ...) error
- func (ams *AlertManagerSilenceClient) Delete(id string) error
- func (ams *AlertManagerSilenceClient) Filter(predicates ...SilencePredicate) (*[]amv2Models.GettableSilence, error)
- func (ams *AlertManagerSilenceClient) List(filter []string) (*amSilence.GetSilencesOK, error)
- func (ams *AlertManagerSilenceClient) Update(id string, endsAt strfmt.DateTime) error
- type AlertManagerSilencer
- type SilencePredicate
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AlertManagerSilenceClient ¶
type AlertManagerSilenceClient struct {
Transport *httptransport.Runtime
}
AlertManagerSilenceClient holds fields for an AlertManagerSilenceClient
func (*AlertManagerSilenceClient) Create ¶
func (ams *AlertManagerSilenceClient) Create(matchers amv2Models.Matchers, startsAt strfmt.DateTime, endsAt strfmt.DateTime, creator string, comment string) error
Create creates a silence in Alertmanager instance defined in Transport
func (*AlertManagerSilenceClient) Delete ¶
func (ams *AlertManagerSilenceClient) Delete(id string) error
Delete deletes silence in Alertmanager instance defined in Transport
func (*AlertManagerSilenceClient) Filter ¶
func (ams *AlertManagerSilenceClient) Filter(predicates ...SilencePredicate) (*[]amv2Models.GettableSilence, error)
Filter filters silences in Alertmanager based on the predicates
func (*AlertManagerSilenceClient) List ¶
func (ams *AlertManagerSilenceClient) List(filter []string) (*amSilence.GetSilencesOK, error)
List lists silences in Alertmanager instance defined in Transport
type AlertManagerSilencer ¶
type AlertManagerSilencer interface { Create(matchers amv2Models.Matchers, startsAt strfmt.DateTime, endsAt strfmt.DateTime, creator string, comment string) error List(filter []string) (*amSilence.GetSilencesOK, error) Delete(id string) error Update(id string, endsAt strfmt.DateTime) error Filter(predicates ...SilencePredicate) (*[]amv2Models.GettableSilence, error) }
AlertManagerSilencer interface enables implementations of an AlertManagerSilencer
type SilencePredicate ¶
type SilencePredicate func(*amv2Models.GettableSilence) bool
SilencePredicate is a predicate that returns a bool
Click to show internal directories.
Click to hide internal directories.