Skip to content

AdHocVariableBuilder🔗

Constructor🔗

func NewAdHocVariableBuilder(name string) *AdHocVariableBuilder

Methods🔗

Build🔗

Builds the object.

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

Datasource🔗

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

func (builder *AdHocVariableBuilder) Datasource(datasource dashboard.DataSourceRef) *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

See also🔗