Skip to content

DatasourceVariableBuilder🔗

Constructor🔗

new DatasourceVariableBuilder(String name)

Methods🔗

build🔗

Builds the object.

public DatasourceVariable build()

current🔗

Shows current selected variable text/value on the dashboard

public DatasourceVariableBuilder current(VariableOption current)

description🔗

Description of variable. It can be defined but null.

public DatasourceVariableBuilder description(String description)

hide🔗

Visibility configuration for the variable

public DatasourceVariableBuilder hide(VariableHide hide)

label🔗

Optional display name

public DatasourceVariableBuilder label(String label)

multi🔗

Whether multiple values can be selected or not from variable value list

public DatasourceVariableBuilder multi(Boolean multi)

name🔗

Name of variable

public DatasourceVariableBuilder name(String name)

type🔗

Query used to fetch values for a variable

public DatasourceVariableBuilder type(String string)

See also🔗