mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Dashboard schema: Update default value for timezone (#62340)
This commit is contained in:
@@ -34,7 +34,7 @@ title: Dashboard kind
|
||||
| `templating` | [object](#templating) | No | TODO docs |
|
||||
| `time` | [object](#time) | No | Time range for dashboard, e.g. last 6 hours, last 7 days, etc |
|
||||
| `timepicker` | [object](#timepicker) | No | TODO docs<br/>TODO this appears to be spread all over in the frontend. Concepts will likely need tidying in tandem with schema changes |
|
||||
| `timezone` | string | No | Timezone of dashboard. Accepts IANA TZDB zone ID or "browser" or "utc". Default: ``. |
|
||||
| `timezone` | string | No | Timezone of dashboard. Accepts IANA TZDB zone ID or "browser" or "utc". Default: `browser`. |
|
||||
| `title` | string | No | Title of dashboard. |
|
||||
| `uid` | string | No | Unique dashboard identifier that can be generated by anyone. string (8-40) |
|
||||
| `version` | integer | No | Version of the dashboard, incremented each time the dashboard is updated. |
|
||||
|
||||
@@ -31,7 +31,7 @@ lineage: seqs: [
|
||||
// Theme of dashboard.
|
||||
style: "light" | *"dark" @grafanamaturity(NeedsExpertReview)
|
||||
// Timezone of dashboard. Accepts IANA TZDB zone ID or "browser" or "utc".
|
||||
timezone?: string | *""
|
||||
timezone?: string | *"browser"
|
||||
// Whether a dashboard is editable or not.
|
||||
editable: bool | *true
|
||||
// Configuration of dashboard cursor sync behavior.
|
||||
|
||||
@@ -808,5 +808,5 @@ export const defaultDashboard: Partial<Dashboard> = {
|
||||
schemaVersion: 36,
|
||||
style: 'dark',
|
||||
tags: [],
|
||||
timezone: '',
|
||||
timezone: 'browser',
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user