Skip to content

NotificationPolicyBuilder🔗

Constructor🔗

func NewNotificationPolicyBuilder() *NotificationPolicyBuilder

Methods🔗

Build🔗

Builds the object.

func (builder *NotificationPolicyBuilder) Build() (NotificationPolicy, error)

ActiveTimeIntervals🔗

func (builder *NotificationPolicyBuilder) ActiveTimeIntervals(activeTimeIntervals []string) *NotificationPolicyBuilder

Continue🔗

func (builder *NotificationPolicyBuilder) Continue(continueArg bool) *NotificationPolicyBuilder

GroupBy🔗

func (builder *NotificationPolicyBuilder) GroupBy(groupBy []string) *NotificationPolicyBuilder

GroupInterval🔗

func (builder *NotificationPolicyBuilder) GroupInterval(groupInterval string) *NotificationPolicyBuilder

GroupWait🔗

func (builder *NotificationPolicyBuilder) GroupWait(groupWait string) *NotificationPolicyBuilder

Match🔗

Deprecated. Remove before v1.0 release.

func (builder *NotificationPolicyBuilder) Match(match map[string]string) *NotificationPolicyBuilder

MatchRe🔗

func (builder *NotificationPolicyBuilder) MatchRe(matchRe alerting.MatchRegexps) *NotificationPolicyBuilder

Matchers🔗

Matchers is a slice of Matchers that is sortable, implements Stringer, and

provides a Matches method to match a LabelSet against all Matchers in the

slice. Note that some users of Matchers might require it to be sorted.

func (builder *NotificationPolicyBuilder) Matchers(matchers alerting.Matchers) *NotificationPolicyBuilder

MuteTimeIntervals🔗

func (builder *NotificationPolicyBuilder) MuteTimeIntervals(muteTimeIntervals []string) *NotificationPolicyBuilder

ObjectMatchers🔗

func (builder *NotificationPolicyBuilder) ObjectMatchers(objectMatchers alerting.ObjectMatchers) *NotificationPolicyBuilder

Provenance🔗

func (builder *NotificationPolicyBuilder) Provenance(provenance alerting.Provenance) *NotificationPolicyBuilder

Receiver🔗

func (builder *NotificationPolicyBuilder) Receiver(receiver string) *NotificationPolicyBuilder

RepeatInterval🔗

func (builder *NotificationPolicyBuilder) RepeatInterval(repeatInterval string) *NotificationPolicyBuilder

Routes🔗

func (builder *NotificationPolicyBuilder) Routes(routes []cog.Builder[alerting.NotificationPolicy]) *NotificationPolicyBuilder

See also🔗