Skip to content

CustomVariableBuilder🔗

Constructor🔗

func NewCustomVariableBuilder(name string) *CustomVariableBuilder

Methods🔗

Build🔗

Builds the object.

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

AllValue🔗

Custom all value

func (builder *CustomVariableBuilder) AllValue(allValue string) *CustomVariableBuilder

Current🔗

Shows current selected variable text/value on the dashboard

func (builder *CustomVariableBuilder) Current(current dashboard.VariableOption) *CustomVariableBuilder

Description🔗

Description of variable. It can be defined but null.

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

Hide🔗

Visibility configuration for the variable

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

IncludeAll🔗

Whether all value option is available or not

func (builder *CustomVariableBuilder) IncludeAll(includeAll bool) *CustomVariableBuilder

Label🔗

Optional display name

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

Multi🔗

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

func (builder *CustomVariableBuilder) Multi(multi bool) *CustomVariableBuilder

Name🔗

Name of variable

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

Options🔗

Options that can be selected for a variable.

func (builder *CustomVariableBuilder) Options(options []dashboard.VariableOption) *CustomVariableBuilder

Values🔗

Query used to fetch values for a variable

func (builder *CustomVariableBuilder) Values(query dashboard.StringOrMap) *CustomVariableBuilder

See also🔗