Documentation ¶
Index ¶
- func ConvertEndpointIdsToRoutingNode(endpointList []*alertingv1.AlertEndpoint, req *alertingv1.AttachedEndpoints, ...) (*alertingv1.RoutingNode, error)
- type Alert
- type AlertGroup
- type AlertStatus
- type GettableAlert
- type LabelSet
- type Matcher
- type PostSilencesResponse
- type PostableAlert
- type PostableSilence
- type Receiver
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ConvertEndpointIdsToRoutingNode ¶
func ConvertEndpointIdsToRoutingNode( endpointList []*alertingv1.AlertEndpoint, req *alertingv1.AttachedEndpoints, id string, ) (*alertingv1.RoutingNode, error)
Types ¶
type Alert ¶
type Alert struct { // generator URL // Format: uri GeneratorURL strfmt.URI `json:"generatorURL,omitempty"` // labels // Required: true Labels LabelSet `json:"labels"` }
Alert alert
swagger:model alert
type AlertGroup ¶
type AlertGroup struct { Labels map[string]string `json:"labels"` Receiver Receiver `json:"receiver"` Alerts []GettableAlert `json:"alerts"` }
AlertGroup struct for AlertGroup
type AlertStatus ¶
type GettableAlert ¶
type GettableAlert struct { // annotations // Required: true Annotations LabelSet `json:"annotations"` // ends at // Required: true // Format: date-time EndsAt *strfmt.DateTime `json:"endsAt"` // fingerprint // Required: true Fingerprint *string `json:"fingerprint"` // receivers // Required: true Receivers []*Receiver `json:"receivers"` // starts at // Required: true // Format: date-time StartsAt *strfmt.DateTime `json:"startsAt"` // status // Required: true Status *AlertStatus `json:"status"` // updated at // Required: true // Format: date-time UpdatedAt *strfmt.DateTime `json:"updatedAt"` Alert }
GettableAlert gettable alert
swagger:model gettableAlert
type PostSilencesResponse ¶
type PostSilencesResponse struct {
SilenceID *string `json:"silenceID,omitempty"`
}
func (*PostSilencesResponse) GetSilenceId ¶
func (p *PostSilencesResponse) GetSilenceId() string
type PostableAlert ¶
type PostableAlert struct { StartsAt *time.Time `json:"startsAt,omitempty"` EndsAt *time.Time `json:"endsAt,omitempty"` Annotations *map[string]string `json:"annotations,omitempty"` Labels map[string]string `json:"labels"` GeneratorURL *string `json:"generatorURL,omitempty"` }
PostableAlert : corresponds to the data AlertManager API needs to trigger alerts
func (*PostableAlert) Must ¶
func (p *PostableAlert) Must() error
func (*PostableAlert) WithAnnotations ¶
func (p *PostableAlert) WithAnnotations(key, value string)
WithAnnotations adds the runtime information to the alert.
func (*PostableAlert) WithCondition ¶
func (p *PostableAlert) WithCondition(conditionId string)
WithCondition In our basic model each receiver is uniquely identified by its name, which in AlertManager can be routed to by the label `alertname`.
func (*PostableAlert) WithLabels ¶
func (p *PostableAlert) WithLabels(key, value string)
type PostableSilence ¶
type PostableSilence struct { Id *string `json:"id,omitempty"` Matchers []Matcher `json:"matchers"` StartsAt time.Time `json:"startsAt"` EndsAt time.Time `json:"endsAt"` CreatedBy string `json:"createdBy"` Comment string `json:"comment"` }
PostableSilence struct for PostableSilence
func (*PostableSilence) Must ¶
func (p *PostableSilence) Must() error
func (*PostableSilence) WithCondition ¶
func (p *PostableSilence) WithCondition(conditionId string)
WithCondition In our basic model each receiver is uniquely identified by its name, which in AlertManager can be routed to by the label `alertname`.
func (*PostableSilence) WithDuration ¶
func (p *PostableSilence) WithDuration(dur time.Duration)
func (*PostableSilence) WithSilenceId ¶
func (p *PostableSilence) WithSilenceId(silenceId string)
Click to show internal directories.
Click to hide internal directories.