mirror of
https://github.com/grafana/grafana.git
synced 2024-11-27 11:20:27 -06:00
323cbe1997
* Update all core kinds to flattened lineages * Regen Go types, without any * Regen Go types, s/interface{}/any/ * Update generated core typescript * Update generate docs * Fix defaults gen in veneer index jenny * Flatten plugindef lineage * Convert all plugin kinds to flattened form * Switch back to interface{} for now * Switch to fs.Sub in plugin DeclParser * Mostly undesirable codegen changes, to be fixed * Update mod and sum * Update pfs tests to flattened lineages * Update thema to latest, regen docs
48 lines
1.7 KiB
CUE
48 lines
1.7 KiB
CUE
package kind
|
|
|
|
name: "Playlist"
|
|
maturity: "merged"
|
|
description: "A playlist is a series of dashboards that is automatically rotated in the browser, on a configurable interval."
|
|
|
|
lineage: schemas: [{
|
|
version: [0, 0]
|
|
schema: {
|
|
spec: {
|
|
// Unique playlist identifier. Generated on creation, either by the
|
|
// creator of the playlist of by the application.
|
|
uid: string
|
|
|
|
// Name of the playlist.
|
|
name: string
|
|
|
|
// 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 | *"5m"
|
|
|
|
// 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?: [...#PlaylistItem]
|
|
} @cuetsy(kind="interface")
|
|
|
|
///////////////////////////////////////
|
|
// Definitions (referenced above) are declared below
|
|
|
|
#PlaylistItem: {
|
|
// Type of the item.
|
|
type: "dashboard_by_uid" | "dashboard_by_id" | "dashboard_by_tag"
|
|
// 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
|
|
|
|
// Title is an unused property -- it will be removed in the future
|
|
title?: string
|
|
} @cuetsy(kind="interface")
|
|
}
|
|
}]
|