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:
parent
bd4e3f0d16
commit
85bf098fdb
@ -22,7 +22,7 @@ title: Dashboard kind
|
||||
| `style` | string | **Yes** | Theme of dashboard. Possible values are: `dark`, `light`. Default: `dark`. |
|
||||
| `annotations` | [object](#annotations) | No | TODO docs |
|
||||
| `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 | |
|
||||
| `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 |
|
||||
|
@ -56,8 +56,8 @@ lineage: seqs: [
|
||||
// TODO docs
|
||||
time_options: [...string] | *["5m", "15m", "1h", "6h", "12h", "24h", "2d", "7d", "30d"]
|
||||
} @grafanamaturity(NeedsExpertReview)
|
||||
// TODO docs
|
||||
fiscalYearStartMonth?: uint8 & <13 @grafanamaturity(NeedsExpertReview)
|
||||
// The month that the fiscal year starts on. 0 = January, 11 = December
|
||||
fiscalYearStartMonth?: uint8 & <12 | *0
|
||||
// TODO docs
|
||||
liveNow?: bool @grafanamaturity(NeedsExpertReview)
|
||||
// TODO docs
|
||||
|
@ -647,7 +647,7 @@ export interface Dashboard {
|
||||
*/
|
||||
editable: boolean;
|
||||
/**
|
||||
* TODO docs
|
||||
* The month that the fiscal year starts on. 0 = January, 11 = December
|
||||
*/
|
||||
fiscalYearStartMonth?: number;
|
||||
gnetId?: string;
|
||||
@ -800,6 +800,7 @@ export interface Dashboard {
|
||||
|
||||
export const defaultDashboard: Partial<Dashboard> = {
|
||||
editable: true,
|
||||
fiscalYearStartMonth: 0,
|
||||
graphTooltip: DashboardCursorSync.Off,
|
||||
links: [],
|
||||
panels: [],
|
||||
|
@ -684,7 +684,7 @@ type Dashboard struct {
|
||||
// Whether a dashboard is editable or not.
|
||||
Editable bool `json:"editable"`
|
||||
|
||||
// TODO docs
|
||||
// The month that the fiscal year starts on. 0 = January, 11 = December
|
||||
FiscalYearStartMonth *int `json:"fiscalYearStartMonth,omitempty"`
|
||||
GnetId *string `json:"gnetId,omitempty"`
|
||||
|
||||
|
@ -283,7 +283,7 @@
|
||||
0,
|
||||
0
|
||||
],
|
||||
"grafanaMaturityCount": 142,
|
||||
"grafanaMaturityCount": 141,
|
||||
"lineageIsGroup": false,
|
||||
"links": {
|
||||
"docs": "https://grafana.com/docs/grafana/next/developers/kinds/core/dashboard/schema-reference",
|
||||
|
Loading…
Reference in New Issue
Block a user