Skip to content

IntervalVariableBuilder🔗

Constructor🔗

new IntervalVariableBuilder(name: string)

Methods🔗

build🔗

Builds the object.

build()

auto🔗

Dynamically calculates interval by dividing time range by the count specified.

auto(auto: boolean)

current🔗

Shows current selected variable text/value on the dashboard

current(current: dashboard.VariableOption)

description🔗

Description of variable. It can be defined but null.

description(description: string)

hide🔗

Visibility configuration for the variable

hide(hide: dashboard.VariableHide)

label🔗

Optional display name

label(label: string)

minInterval🔗

The minimum threshold below which the step count intervals will not divide the time.

minInterval(autoMin: string)

name🔗

Name of variable

name(name: string)

options🔗

Options that can be selected for a variable.

options(options: dashboard.VariableOption[])

stepCount🔗

How many times the current time range should be divided to calculate the value, similar to the Max data points query option.

For example, if the current visible time range is 30 minutes, then the auto interval groups the data into 30 one-minute increments.

stepCount(autoCount: number)

values🔗

Query used to fetch values for a variable

values(query: string | Record<string, any>)

See also🔗