new endpoint to post/get trimmed dashboard json (#33465)

* new endpoint to post/get trimed dashboard json

* add isdisabled check in dashboard.go
This commit is contained in:
ying-jeanne
2021-04-28 19:38:33 +08:00
committed by GitHub
parent 076e2ce06a
commit 748778fff0
19 changed files with 572 additions and 14 deletions
+3 -2
View File
@@ -80,6 +80,7 @@ Family: scuemata.#Family & {
// synthetic Family to represent them in Go, for ease of generating
// e.g. JSON Schema.
#Panel: {
...
// The panel plugin type id.
type: !=""
@@ -91,7 +92,7 @@ Family: scuemata.#Family & {
// _pv: { maj: int, min: int }
// The major and minor versions of the panel plugin for this schema.
// TODO 2-tuple list instead of struct?
panelSchema: { maj: number, min: number }
panelSchema?: { maj: number, min: number }
// Panel title.
title?: string
@@ -128,7 +129,7 @@ Family: scuemata.#Family & {
// with types derived from plugins in the Instance variant.
// When working directly from CUE, importers can extend this
// type directly to achieve the same effect.
targets?: [...{}]
targets?: [...{...}]
// The values depend on panel type
options: {...}