Skip to content

IntervalVariableBuilder🔗

Constructor🔗

new IntervalVariableBuilder(string $name)

Methods🔗

build🔗

Builds the object.

build()

current🔗

Shows current selected variable text/value on the dashboard

current(\Grafana\Foundation\Dashboard\VariableOption $current)

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)

options🔗

Options that can be selected for a variable.

@param array<\Grafana\Foundation\Dashboard\VariableOption> $options

options(array $options)

values🔗

Query used to fetch values for a variable

@param string|array $query

values($query)

See also🔗