QueryVariableBuilder🔗
Constructor🔗
Methods🔗
Build🔗
Builds the object.
AllValue🔗
Custom all value
Current🔗
Shows current selected variable text/value on the dashboard
func (builder *QueryVariableBuilder) Current(current dashboard.VariableOption) *QueryVariableBuilder
Datasource🔗
Data source used to fetch values for a variable. It can be defined but null
.
func (builder *QueryVariableBuilder) Datasource(datasource dashboard.DataSourceRef) *QueryVariableBuilder
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 *QueryVariableBuilder) Options(options []dashboard.VariableOption) *QueryVariableBuilder
Query🔗
Query used to fetch values for a variable
Refresh🔗
Options to config when to refresh a variable
func (builder *QueryVariableBuilder) Refresh(refresh dashboard.VariableRefresh) *QueryVariableBuilder
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.
Sort🔗
Options sort order