Skip to content

IntervalVariableBuilder🔗

Constructor🔗

func NewIntervalVariableBuilder(name string) *IntervalVariableBuilder

Methods🔗

Build🔗

Builds the object.

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

Auto🔗

Dynamically calculates interval by dividing time range by the count specified.

func (builder *IntervalVariableBuilder) Auto(auto bool) *IntervalVariableBuilder

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.

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

Hide🔗

Visibility configuration for the variable

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

Label🔗

Optional display name

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

MinInterval🔗

The minimum threshold below which the step count intervals will not divide the time.

func (builder *IntervalVariableBuilder) MinInterval(autoMin string) *IntervalVariableBuilder

Name🔗

Name of variable

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

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.

func (builder *IntervalVariableBuilder) StepCount(autoCount int32) *IntervalVariableBuilder

Values🔗

Query used to fetch values for a variable

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

See also🔗