Skip to content

AdHocVariableBuilder🔗

Constructor🔗

new AdHocVariableBuilder(string $name)

Methods🔗

build🔗

Builds the object.

build()

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)

label🔗

Optional display name

label(string $label)

name🔗

Name of variable

name(string $name)

See also🔗