NotificationPolicy
Constructor
Methods
build
Builds the object.
def build() -> alerting.NotificationPolicy
active_time_intervals
def active_time_intervals(active_time_intervals: list[str]) -> typing.Self
continue_val
def continue_val(continue_val: bool) -> typing.Self
group_by
def group_by(group_by: list[str]) -> typing.Self
group_interval
def group_interval(group_interval: str) -> typing.Self
group_wait
def group_wait(group_wait: str) -> typing.Self
match
Deprecated. Remove before v1.0 release.
def match(match: dict[str, str]) -> typing.Self
match_re
def match_re(match_re: alerting.MatchRegexps) -> typing.Self
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.
def matchers(matchers: alerting.Matchers) -> typing.Self
mute_time_intervals
def mute_time_intervals(mute_time_intervals: list[str]) -> typing.Self
object_matchers
def object_matchers(object_matchers: alerting.ObjectMatchers) -> typing.Self
provenance
def provenance(provenance: alerting.Provenance) -> typing.Self
receiver
def receiver(receiver: str) -> typing.Self
repeat_interval
def repeat_interval(repeat_interval: str) -> typing.Self
routes
def routes(routes: list[cogbuilder.Builder[alerting.NotificationPolicy]]) -> typing.Self
See also