mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Dashboard schema: Review and mature fiscalYearStartMonth property (#62105)
This commit is contained in:
@@ -22,7 +22,7 @@ title: Dashboard kind
|
|||||||
| `style` | string | **Yes** | Theme of dashboard. Possible values are: `dark`, `light`. Default: `dark`. |
|
| `style` | string | **Yes** | Theme of dashboard. Possible values are: `dark`, `light`. Default: `dark`. |
|
||||||
| `annotations` | [object](#annotations) | No | TODO docs |
|
| `annotations` | [object](#annotations) | No | TODO docs |
|
||||||
| `description` | string | No | Description of dashboard. |
|
| `description` | string | No | Description of dashboard. |
|
||||||
| `fiscalYearStartMonth` | integer | No | TODO docs |
|
| `fiscalYearStartMonth` | integer | No | The month that the fiscal year starts on. 0 = January, 11 = December Default: `0`. |
|
||||||
| `gnetId` | string | No | |
|
| `gnetId` | string | No | |
|
||||||
| `id` | integer | No | Unique numeric identifier for the dashboard.<br/>TODO must isolate or remove identifiers local to a Grafana instance...? |
|
| `id` | integer | No | Unique numeric identifier for the dashboard.<br/>TODO must isolate or remove identifiers local to a Grafana instance...? |
|
||||||
| `links` | [DashboardLink](#dashboardlink)[] | No | TODO docs |
|
| `links` | [DashboardLink](#dashboardlink)[] | No | TODO docs |
|
||||||
|
|||||||
@@ -56,8 +56,8 @@ lineage: seqs: [
|
|||||||
// TODO docs
|
// TODO docs
|
||||||
time_options: [...string] | *["5m", "15m", "1h", "6h", "12h", "24h", "2d", "7d", "30d"]
|
time_options: [...string] | *["5m", "15m", "1h", "6h", "12h", "24h", "2d", "7d", "30d"]
|
||||||
} @grafanamaturity(NeedsExpertReview)
|
} @grafanamaturity(NeedsExpertReview)
|
||||||
// TODO docs
|
// The month that the fiscal year starts on. 0 = January, 11 = December
|
||||||
fiscalYearStartMonth?: uint8 & <13 @grafanamaturity(NeedsExpertReview)
|
fiscalYearStartMonth?: uint8 & <12 | *0
|
||||||
// TODO docs
|
// TODO docs
|
||||||
liveNow?: bool @grafanamaturity(NeedsExpertReview)
|
liveNow?: bool @grafanamaturity(NeedsExpertReview)
|
||||||
// TODO docs
|
// TODO docs
|
||||||
|
|||||||
@@ -647,7 +647,7 @@ export interface Dashboard {
|
|||||||
*/
|
*/
|
||||||
editable: boolean;
|
editable: boolean;
|
||||||
/**
|
/**
|
||||||
* TODO docs
|
* The month that the fiscal year starts on. 0 = January, 11 = December
|
||||||
*/
|
*/
|
||||||
fiscalYearStartMonth?: number;
|
fiscalYearStartMonth?: number;
|
||||||
gnetId?: string;
|
gnetId?: string;
|
||||||
@@ -800,6 +800,7 @@ export interface Dashboard {
|
|||||||
|
|
||||||
export const defaultDashboard: Partial<Dashboard> = {
|
export const defaultDashboard: Partial<Dashboard> = {
|
||||||
editable: true,
|
editable: true,
|
||||||
|
fiscalYearStartMonth: 0,
|
||||||
graphTooltip: DashboardCursorSync.Off,
|
graphTooltip: DashboardCursorSync.Off,
|
||||||
links: [],
|
links: [],
|
||||||
panels: [],
|
panels: [],
|
||||||
|
|||||||
@@ -684,7 +684,7 @@ type Dashboard struct {
|
|||||||
// Whether a dashboard is editable or not.
|
// Whether a dashboard is editable or not.
|
||||||
Editable bool `json:"editable"`
|
Editable bool `json:"editable"`
|
||||||
|
|
||||||
// TODO docs
|
// The month that the fiscal year starts on. 0 = January, 11 = December
|
||||||
FiscalYearStartMonth *int `json:"fiscalYearStartMonth,omitempty"`
|
FiscalYearStartMonth *int `json:"fiscalYearStartMonth,omitempty"`
|
||||||
GnetId *string `json:"gnetId,omitempty"`
|
GnetId *string `json:"gnetId,omitempty"`
|
||||||
|
|
||||||
|
|||||||
@@ -283,7 +283,7 @@
|
|||||||
0,
|
0,
|
||||||
0
|
0
|
||||||
],
|
],
|
||||||
"grafanaMaturityCount": 142,
|
"grafanaMaturityCount": 141,
|
||||||
"lineageIsGroup": false,
|
"lineageIsGroup": false,
|
||||||
"links": {
|
"links": {
|
||||||
"docs": "https://grafana.com/docs/grafana/next/developers/kinds/core/dashboard/schema-reference",
|
"docs": "https://grafana.com/docs/grafana/next/developers/kinds/core/dashboard/schema-reference",
|
||||||
|
|||||||
Reference in New Issue
Block a user