Chore: Dashboard schema (#49993)

* user essentials mob! 🔱

* user essentials mob! 🔱

lastFile:pkg/coremodel/dashboard/lineage.cue

* user essentials mob! 🔱

Co-authored-by: joshhunt <josh@trtr.co>
Co-authored-by: polinaboneva <polina.boneva@grafana.com>
This commit is contained in:
Ashley Harrison
2022-06-01 15:05:27 +01:00
committed by GitHub
parent 470be98588
commit 333195ce21
3 changed files with 170 additions and 180 deletions

View File

@@ -76,6 +76,21 @@ interface FieldColor {
seriesBy?: FieldColorSeriesByMode;
}
interface GridPos {
h: number;
static?: boolean;
w: number;
x: number;
y: number;
}
const defaultGridPos: Partial<GridPos> = {
h: 9,
w: 12,
x: 0,
y: 0,
};
interface Threshold {
color: string;
state?: string;
@@ -123,12 +138,7 @@ interface Panel {
}[];
}[];
};
gridPos?: {
h: number;
w: number;
x: number;
y: number;
};
gridPos?: GridPos;
id?: number;
interval?: string;
links?: DashboardLink[];