CustomVariableBuilder🔗
Constructor🔗
Methods🔗
Build🔗
Builds the object.
AllValue🔗
Custom all value
AllowCustomValue🔗
Allow custom values to be entered in the variable
func (builder *CustomVariableBuilder) AllowCustomValue(allowCustomValue bool) *CustomVariableBuilder
Current🔗
Shows current selected variable text/value on the dashboard
func (builder *CustomVariableBuilder) Current(current dashboard.VariableOption) *CustomVariableBuilder
Definition🔗
Description🔗
Description of variable. It can be defined but null.
Hide🔗
Visibility configuration for the variable
IncludeAll🔗
Whether all value option is available or not
Label🔗
Optional display name
Multi🔗
Whether multiple values can be selected or not from variable value list
Name🔗
Name of variable
Options🔗
Options that can be selected for a variable.
func (builder *CustomVariableBuilder) Options(options []dashboard.VariableOption) *CustomVariableBuilder
StaticOptions🔗
Additional static options for query variable
func (builder *CustomVariableBuilder) StaticOptions(staticOptions []dashboard.VariableOption) *CustomVariableBuilder
StaticOptionsOrder🔗
Ordering of static options in relation to options returned from data source for query variable
func (builder *CustomVariableBuilder) StaticOptionsOrder(staticOptionsOrder dashboard.VariableModelStaticOptionsOrder) *CustomVariableBuilder
Values🔗
Query used to fetch values for a variable