Skip to content

AdHocVariableBuilder🔗

Constructor🔗

func NewAdHocVariableBuilder(name string) *AdHocVariableBuilder

Methods🔗

Build🔗

Builds the object.

func (builder *AdHocVariableBuilder) Build() (VariableModel, error)

AllowCustomValue🔗

Allow custom values to be entered in the variable

func (builder *AdHocVariableBuilder) AllowCustomValue(allowCustomValue bool) *AdHocVariableBuilder

Datasource🔗

Data source used to fetch values for a variable. It can be defined but null.

func (builder *AdHocVariableBuilder) Datasource(datasource common.DataSourceRef) *AdHocVariableBuilder

Definition🔗

func (builder *AdHocVariableBuilder) Definition(definition string) *AdHocVariableBuilder

Description🔗

Description of variable. It can be defined but null.

func (builder *AdHocVariableBuilder) Description(description string) *AdHocVariableBuilder

Hide🔗

Visibility configuration for the variable

func (builder *AdHocVariableBuilder) Hide(hide dashboard.VariableHide) *AdHocVariableBuilder

Label🔗

Optional display name

func (builder *AdHocVariableBuilder) Label(label string) *AdHocVariableBuilder

Name🔗

Name of variable

func (builder *AdHocVariableBuilder) Name(name string) *AdHocVariableBuilder

StaticOptions🔗

Additional static options for query variable

func (builder *AdHocVariableBuilder) StaticOptions(staticOptions []dashboard.VariableOption) *AdHocVariableBuilder

StaticOptionsOrder🔗

Ordering of static options in relation to options returned from data source for query variable

func (builder *AdHocVariableBuilder) StaticOptionsOrder(staticOptionsOrder dashboard.VariableModelStaticOptionsOrder) *AdHocVariableBuilder

See also🔗