Dashboard schema: Review and mature timezone property (#62090)
* Review and mature timezone property of Dashboard kind * Update timezone type
This commit is contained in:
@@ -17,15 +17,6 @@ const (
|
||||
StyleLight Style = "light"
|
||||
)
|
||||
|
||||
// Defines values for Timezone.
|
||||
const (
|
||||
TimezoneBrowser Timezone = "browser"
|
||||
|
||||
TimezoneEmpty Timezone = ""
|
||||
|
||||
TimezoneUtc Timezone = "utc"
|
||||
)
|
||||
|
||||
// Defines values for CursorSync.
|
||||
const (
|
||||
CursorSyncN0 CursorSync = 0
|
||||
@@ -290,8 +281,8 @@ type Dashboard struct {
|
||||
TimeOptions []string `json:"time_options"`
|
||||
} `json:"timepicker,omitempty"`
|
||||
|
||||
// Timezone of dashboard,
|
||||
Timezone *Timezone `json:"timezone,omitempty"`
|
||||
// Timezone of dashboard. Accepts IANA TZDB zone ID or "browser" or "utc".
|
||||
Timezone *string `json:"timezone,omitempty"`
|
||||
|
||||
// Title of dashboard.
|
||||
Title *string `json:"title,omitempty"`
|
||||
@@ -309,9 +300,6 @@ type Dashboard struct {
|
||||
// Theme of dashboard.
|
||||
type Style string
|
||||
|
||||
// Timezone of dashboard,
|
||||
type Timezone string
|
||||
|
||||
// 0 for no shared crosshair or tooltip (default).
|
||||
// 1 for shared crosshair.
|
||||
// 2 for shared crosshair AND shared tooltip.
|
||||
|
||||
@@ -283,7 +283,7 @@
|
||||
0,
|
||||
0
|
||||
],
|
||||
"grafanaMaturityCount": 140,
|
||||
"grafanaMaturityCount": 139,
|
||||
"lineageIsGroup": false,
|
||||
"links": {
|
||||
"docs": "https://grafana.com/docs/grafana/next/developers/kinds/core/dashboard/schema-reference",
|
||||
|
||||
Reference in New Issue
Block a user