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🔗

class TimePickerConfig implements \JsonSerializable
{
    /**
     * Whether timepicker is visible or not.
     */
    public ?bool $hidden;

    /**
     * Interval options available in the refresh picker dropdown.
     * @var array<string>|null
     */
    public ?array $refreshIntervals;

    /**
     * Selectable options available in the time picker dropdown. Has no effect on provisioned dashboard.
     * @var array<string>|null
     */
    public ?array $timeOptions;

    /**
     * Override the now time by entering a time delay. Use this option to accommodate known delays in data aggregation to avoid null values.
     */
    public ?string $nowDelay;

}

Methods🔗

fromArray🔗

Builds this object from an array.

This function is meant to be used with the return value of json_decode($json, true).

static fromArray(array $inputData)

jsonSerialize🔗

Returns the data representing this object, preparing it for JSON serialization with json_encode().

jsonSerialize()

See also🔗