Skip to content

RuleSearchHitFields🔗

RuleSearchHitFields is the per-kind field payload returned on each hit.🔗

It carries the union of alert- and recording-rule search fields; only the

fields relevant to a hit's kind are populated. This maps to the kind's

declared searchFields.

Constructor🔗

RuleSearchHitFields()

Methods🔗

build🔗

Builds the object.

def build() -> alertingv0alpha1.RuleSearchHitFields

annotations🔗

Alert-rule fields.

def annotations(annotations: dict[str, str]) -> typing.Self

dashboard_uid🔗

def dashboard_uid(dashboard_uid: str) -> typing.Self

datasource_ui_ds🔗

def datasource_ui_ds(datasource_ui_ds: list[str]) -> typing.Self

folder🔗

def folder(folder: str) -> typing.Self

for_val🔗

def for_val(for_val: str) -> typing.Self

interval🔗

def interval(interval: str) -> typing.Self

keep_firing_for🔗

def keep_firing_for(keep_firing_for: str) -> typing.Self

labels🔗

def labels(labels: dict[str, str]) -> typing.Self

metric🔗

Recording-rule fields.

def metric(metric: str) -> typing.Self

notification_type🔗

def notification_type(notification_type: str) -> typing.Self

panel_id🔗

def panel_id(panel_id: int) -> typing.Self

paused🔗

def paused(paused: bool) -> typing.Self

receiver🔗

def receiver(receiver: str) -> typing.Self

routing_tree🔗

def routing_tree(routing_tree: str) -> typing.Self

target_datasource_uid🔗

def target_datasource_uid(target_datasource_uid: str) -> typing.Self

title🔗

def title(title: str) -> typing.Self

type_val🔗

def type_val(type_val: str) -> typing.Self

See also🔗