Skip to content

IntervalVariableBuilder🔗

Constructor🔗

func NewIntervalVariableBuilder(name string) *IntervalVariableBuilder

Methods🔗

Build🔗

Builds the object.

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

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

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

Values🔗

Query used to fetch values for a variable

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

See also🔗