Skip to content

IntervalVariable🔗

Constructor🔗

IntervalVariable(name: str)

Methods🔗

build🔗

Builds the object.

def build() -> dashboard.VariableModel

auto🔗

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

def auto(auto: bool) -> typing.Self

current🔗

Shows current selected variable text/value on the dashboard

def current(current: dashboard.VariableOption) -> typing.Self

description🔗

Description of variable. It can be defined but null.

def description(description: str) -> typing.Self

hide🔗

Visibility configuration for the variable

def hide(hide: dashboard.VariableHide) -> typing.Self

label🔗

Optional display name

def label(label: str) -> typing.Self

min_interval🔗

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

def min_interval(auto_min: str) -> typing.Self

name🔗

Name of variable

def name(name: str) -> typing.Self

options🔗

Options that can be selected for a variable.

def options(options: list[dashboard.VariableOption]) -> typing.Self

step_count🔗

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.

def step_count(auto_count: int) -> typing.Self

values🔗

Query used to fetch values for a variable

def values(query: typing.Union[str, dict[str, object]]) -> typing.Self

See also🔗