LibraryPanelKind
库面板是可在任何仪表盘中使用的可重用面板。当您对库面板进行更改时,该更改会传播到使用该面板的所有实例。库面板简化了跨多个仪表盘的面板重用。
以下是默认的库面板元素 JSON
"kind": "LibraryPanel",
"spec": {
"id": 0,
"libraryPanel": {
name: "",
uid: "",
}
"title": ""
}
LibraryPanelKind
由以下部分组成
- kind: “LibraryPanel”
- spec: LibraryPanelKindSpec
- libraryPanel: LibraryPanelRef
LibraryPanelKindSpec
下表解释了库面板元素 JSON 字段的用法
名称 | 用法 |
---|---|
id | 仪表盘中库面板的面板 ID。 |
libraryPanel | LibraryPanelRef |
title | 仪表盘中库面板的标题。 |
LibraryPanelRef
下表解释了库面板引用 JSON 字段的用法
名称 | 用法 |
---|---|
name | 库面板名称 |
uid | 库面板 UID |