mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
58 lines
1.8 KiB
Go
58 lines
1.8 KiB
Go
// Code generated - EDITING IS FUTILE. DO NOT EDIT.
|
|
//
|
|
// Generated by:
|
|
// kinds/gen.go
|
|
// Using jennies:
|
|
// GoResourceTypes
|
|
//
|
|
// Run 'make gen-cue' from repository root to regenerate.
|
|
|
|
package playlist
|
|
|
|
// Defines values for ItemType.
|
|
const (
|
|
ItemTypeDashboardById ItemType = "dashboard_by_id"
|
|
ItemTypeDashboardByTag ItemType = "dashboard_by_tag"
|
|
ItemTypeDashboardByUid ItemType = "dashboard_by_uid"
|
|
)
|
|
|
|
// Item defines model for Item.
|
|
type Item struct {
|
|
// Title is an unused property -- it will be removed in the future
|
|
Title *string `json:"title,omitempty"`
|
|
|
|
// Type of the item.
|
|
Type ItemType `json:"type"`
|
|
|
|
// Value depends on type and describes the playlist item.
|
|
//
|
|
// - dashboard_by_id: The value is an internal numerical identifier set by Grafana. This
|
|
// is not portable as the numerical identifier is non-deterministic between different instances.
|
|
// Will be replaced by dashboard_by_uid in the future. (deprecated)
|
|
// - dashboard_by_tag: The value is a tag which is set on any number of dashboards. All
|
|
// dashboards behind the tag will be added to the playlist.
|
|
// - dashboard_by_uid: The value is the dashboard UID
|
|
Value string `json:"value"`
|
|
}
|
|
|
|
// Type of the item.
|
|
type ItemType string
|
|
|
|
// Spec defines model for Spec.
|
|
type Spec struct {
|
|
// Interval sets the time between switching views in a playlist.
|
|
// FIXME: Is this based on a standardized format or what options are available? Can datemath be used?
|
|
Interval string `json:"interval"`
|
|
|
|
// The ordered list of items that the playlist will iterate over.
|
|
// FIXME! This should not be optional, but changing it makes the godegen awkward
|
|
Items []Item `json:"items,omitempty"`
|
|
|
|
// Name of the playlist.
|
|
Name string `json:"name"`
|
|
|
|
// Unique playlist identifier. Generated on creation, either by the
|
|
// creator of the playlist of by the application.
|
|
Uid string `json:"uid"`
|
|
}
|