Dashboard schema: Review and mature timezone property (#62090)

* Review and mature timezone property of Dashboard kind

* Update timezone type
This commit is contained in:
Dominik Prokop
2023-01-27 07:13:33 -08:00
committed by GitHub
parent 5531e22f46
commit 83199c4bf5
7 changed files with 11 additions and 21 deletions
+2 -14
View File
@@ -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.
+1 -1
View File
@@ -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",