IntervalVariableBuilder🔗
Constructor🔗
Methods🔗
Build🔗
Builds the object.
Auto🔗
Dynamically calculates interval by dividing time range by the count specified.
Current🔗
Shows current selected variable text/value on the dashboard
func (builder *IntervalVariableBuilder) Current(current dashboard.VariableOption) *IntervalVariableBuilder
Description🔗
Description of variable. It can be defined but null
.
Hide🔗
Visibility configuration for the variable
Label🔗
Optional display name
MinInterval🔗
The minimum threshold below which the step count intervals will not divide the time.
Name🔗
Name of variable
Options🔗
Options that can be selected for a variable.
func (builder *IntervalVariableBuilder) Options(options []dashboard.VariableOption) *IntervalVariableBuilder
StepCount🔗
How many times the current time range should be divided to calculate the value, similar to the Max data points query option.
For example, if the current visible time range is 30 minutes, then the auto interval groups the data into 30 one-minute increments.
Values🔗
Query used to fetch values for a variable
func (builder *IntervalVariableBuilder) Values(query dashboard.StringOrMap) *IntervalVariableBuilder