Skip to content

ConstantVariable🔗

Constructor🔗

ConstantVariable(name: str)

Methods🔗

build🔗

Builds the object.

def build() -> dashboard.VariableModel

all_format🔗

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

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

description🔗

Description of variable. It can be defined but null.

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

id_val🔗

Unique numeric identifier for the variable.

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

label🔗

Optional display name

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

name🔗

Name of variable

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

value🔗

Query used to fetch values for a variable

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

See also🔗