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.

@param array $annotations

annotations(array $annotations)

dashboardUID🔗

dashboardUID(string $dashboardUID)

datasourceUIDs🔗

@param array $datasourceUIDs

datasourceUIDs(array $datasourceUIDs)

folder🔗

folder(string $folder)

for🔗

for(string $for)

interval🔗

interval(string $interval)

keepFiringFor🔗

keepFiringFor(string $keepFiringFor)

labels🔗

@param array $labels

labels(array $labels)

metric🔗

Recording-rule fields.

metric(string $metric)

notificationType🔗

notificationType(string $notificationType)

panelID🔗

panelID(int $panelID)

paused🔗

paused(bool $paused)

receiver🔗

receiver(string $receiver)

routingTree🔗

routingTree(string $routingTree)

targetDatasourceUID🔗

targetDatasourceUID(string $targetDatasourceUID)

title🔗

title(string $title)

type🔗

type(string $type)

See also🔗