public class VariablesBuilder
Mutable builder to create variables on dashboard.
Constructor and Description |
---|
VariablesBuilder()
Mutable builder to create variables on dashboard.
|
Modifier and Type | Method and Description |
---|---|
VariableDelegate |
constant(java.lang.String value,
kotlin.jvm.functions.Function1<? super ru.yandex.money.tools.grafana.dsl.variables.ConstantVariable.Builder,kotlin.Unit> build)
Creates constant.
|
VariableDelegate |
custom(java.lang.String[] values,
kotlin.jvm.functions.Function1<? super ru.yandex.money.tools.grafana.dsl.variables.CustomVariable.Builder,kotlin.Unit> build)
Creates custom variable.
|
java.util.List<ru.yandex.money.tools.grafana.dsl.variables.Variable> |
getVariables()
Variables on dashboard.
|
VariableDelegate |
interval(Duration[] durations,
kotlin.jvm.functions.Function1<? super ru.yandex.money.tools.grafana.dsl.variables.IntervalVariable.Builder,kotlin.Unit> build)
Creates interval variable.
|
VariableDelegate |
query(Datasource datasource,
java.lang.String query,
kotlin.jvm.functions.Function1<? super ru.yandex.money.tools.grafana.dsl.variables.QueryVariable.Builder,kotlin.Unit> build)
Creates query variable.
|
VariableDelegate |
textBox(java.lang.String defaultValue,
kotlin.jvm.functions.Function1<? super ru.yandex.money.tools.grafana.dsl.variables.TextBoxVariable.Builder,kotlin.Unit> build)
Creates textBox variable.
|
public VariablesBuilder()
Mutable builder to create variables on dashboard.
public java.util.List<ru.yandex.money.tools.grafana.dsl.variables.Variable> getVariables()
Variables on dashboard.
This field made public to make class VariablesBuilder
extensible.
class VariablesBuilder
public VariableDelegate interval(Duration[] durations, kotlin.jvm.functions.Function1<? super ru.yandex.money.tools.grafana.dsl.variables.IntervalVariable.Builder,kotlin.Unit> build)
Creates interval variable.
durations
- durations that used as values for variablebuild
- builder function to setting up variable propertiespublic VariableDelegate query(Datasource datasource, java.lang.String query, kotlin.jvm.functions.Function1<? super ru.yandex.money.tools.grafana.dsl.variables.QueryVariable.Builder,kotlin.Unit> build)
Creates query variable.
datasource
- datasource that used to query variable valuesquery
- a string query that will be executed to retrieve variable valuesbuild
- builder function to setting up variable propertiespublic VariableDelegate custom(java.lang.String[] values, kotlin.jvm.functions.Function1<? super ru.yandex.money.tools.grafana.dsl.variables.CustomVariable.Builder,kotlin.Unit> build)
Creates custom variable.
values
- values of variablebuild
- builder function to setting up variable propertiespublic VariableDelegate constant(java.lang.String value, kotlin.jvm.functions.Function1<? super ru.yandex.money.tools.grafana.dsl.variables.ConstantVariable.Builder,kotlin.Unit> build)
Creates constant.
value
- a value of constantbuild
- builder function to setting up variable propertiespublic VariableDelegate textBox(java.lang.String defaultValue, kotlin.jvm.functions.Function1<? super ru.yandex.money.tools.grafana.dsl.variables.TextBoxVariable.Builder,kotlin.Unit> build)
Creates textBox variable.
defaultValue
- a default value of text boxbuild
- builder function to setting up variable properties