Skip to content

TimePickerConfig🔗

Time picker configuration

It defines the default config for the time picker and the refresh picker for the specific dashboard.

Definition🔗

type TimePickerConfig struct {
    // Whether timepicker is visible or not.
    Hidden *bool `json:"hidden,omitempty"`
    // Interval options available in the refresh picker dropdown.
    RefreshIntervals []string `json:"refresh_intervals,omitempty"`
    // Selectable options available in the time picker dropdown. Has no effect on provisioned dashboard.
    TimeOptions []string `json:"time_options,omitempty"`
    // Override the now time by entering a time delay. Use this option to accommodate known delays in data aggregation to avoid null values.
    NowDelay *string `json:"nowDelay,omitempty"`
}

Methods🔗

UnmarshalJSONStrict🔗

UnmarshalJSONStrict implements a custom JSON unmarshalling logic to decode TimePickerConfig from JSON.

Note: the unmarshalling done by this function is strict. It will fail over required fields being absent from the input, fields having an incorrect type, unexpected fields being present, …

func (timePickerConfig *TimePickerConfig) UnmarshalJSONStrict(raw []byte) error

Equals🔗

Equals tests the equality of two TimePickerConfig objects.

func (timePickerConfig *TimePickerConfig) Equals(other TimePickerConfig) bool

Validate🔗

Validate checks all the validation constraints that may be defined on TimePickerConfig fields for violations and returns them.

func (timePickerConfig *TimePickerConfig) Validate() error

See also🔗