DatasourceVariableBuilder🔗
Constructor🔗
Methods🔗
Build🔗
Builds the object.
AllValue🔗
Custom all value
Current🔗
Shows current selected variable text/value on the dashboard
func (builder *DatasourceVariableBuilder) Current(current dashboard.VariableOption) *DatasourceVariableBuilder
Description🔗
Description of variable. It can be defined but null
.
func (builder *DatasourceVariableBuilder) Description(description string) *DatasourceVariableBuilder
Hide🔗
Visibility configuration for the variable
func (builder *DatasourceVariableBuilder) Hide(hide dashboard.VariableHide) *DatasourceVariableBuilder
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
Regex🔗
Optional field, if you want to extract part of a series name or metric node segment.
Named capture groups can be used to separate the display text and value.
Type🔗
Query used to fetch values for a variable