Skip to content

RuleSearchHitFieldsBuilder🔗

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🔗

new RuleSearchHitFieldsBuilder()

Methods🔗

build🔗

Builds the object.

build()

annotations🔗

Alert-rule fields.

annotations(annotations: Record<string, string>)

dashboardUID🔗

dashboardUID(dashboardUID: string)

datasourceUIDs🔗

datasourceUIDs(datasourceUIDs: string[])

folder🔗

folder(folder: string)

forVal🔗

forVal(forVal: string)

interval🔗

interval(interval: string)

keepFiringFor🔗

keepFiringFor(keepFiringFor: string)

labels🔗

labels(labels: Record<string, string>)

metric🔗

Recording-rule fields.

metric(metric: string)

notificationType🔗

notificationType(notificationType: string)

panelID🔗

panelID(panelID: number)

paused🔗

paused(paused: boolean)

receiver🔗

receiver(receiver: string)

routingTree🔗

routingTree(routingTree: string)

targetDatasourceUID🔗

targetDatasourceUID(targetDatasourceUID: string)

title🔗

title(title: string)

type🔗

type(type: string)

See also🔗