Skip to content

SimplifiedRouting🔗

Definition🔗

type SimplifiedRouting struct {
    Type alertingv0alpha1.NotificationSettingsType `json:"type"`
    Receiver string `json:"receiver"`
    GroupBy []string `json:"groupBy,omitempty"`
    GroupWait *alertingv0alpha1.PromDuration `json:"groupWait,omitempty"`
    GroupInterval *alertingv0alpha1.PromDuration `json:"groupInterval,omitempty"`
    RepeatInterval *alertingv0alpha1.PromDuration `json:"repeatInterval,omitempty"`
    MuteTimeIntervals []alertingv0alpha1.TimeIntervalRef `json:"muteTimeIntervals,omitempty"`
    ActiveTimeIntervals []alertingv0alpha1.TimeIntervalRef `json:"activeTimeIntervals,omitempty"`
}

Methods🔗

UnmarshalJSONStrict🔗

UnmarshalJSONStrict implements a custom JSON unmarshalling logic to decode SimplifiedRouting from JSON.

Note: the unmarshalling done by this function is strict. It will fail over required fields being absent from the input, fields having an incorrect type, unexpected fields being present, …

func (simplifiedRouting *SimplifiedRouting) UnmarshalJSONStrict(raw []byte) error

Equals🔗

Equals tests the equality of two SimplifiedRouting objects.

func (simplifiedRouting *SimplifiedRouting) Equals(other SimplifiedRouting) bool

Validate🔗

Validate checks all the validation constraints that may be defined on SimplifiedRouting fields for violations and returns them.

func (simplifiedRouting *SimplifiedRouting) Validate() error

See also🔗