Skip to content

AdHocVariableBuilder🔗

Constructor🔗

new AdHocVariableBuilder(string $name)

Methods🔗

build🔗

Builds the object.

build()

allFormat🔗

Format to use while fetching all values from data source, eg: wildcard, glob, regex, pipe, etc.

allFormat(string $allFormat)

datasource🔗

Data source used to fetch values for a variable. It can be defined but null.

datasource(\Grafana\Foundation\Dashboard\DataSourceRef $datasource)

description🔗

Description of variable. It can be defined but null.

description(string $description)

hide🔗

Visibility configuration for the variable

hide(\Grafana\Foundation\Dashboard\VariableHide $hide)

id🔗

Unique numeric identifier for the variable.

id(string $id)

label🔗

Optional display name

label(string $label)

name🔗

Name of variable

name(string $name)

See also🔗