mirror of
https://github.com/grafana/grafana.git
synced 2025-08-03 06:22:13 +08:00
Schema: Add schema for library panels (#62169)
This commit is contained in:
@ -0,0 +1,70 @@
|
||||
---
|
||||
keywords:
|
||||
- grafana
|
||||
- schema
|
||||
title: LibraryPanel kind
|
||||
---
|
||||
> Both documentation generation and kinds schemas are in active development and subject to change without prior notice.
|
||||
|
||||
# LibraryPanel kind
|
||||
|
||||
## Maturity: experimental
|
||||
## Version: 0.0
|
||||
|
||||
## Properties
|
||||
|
||||
| Property | Type | Required | Description |
|
||||
|-----------------|-------------------------------------------------|----------|--------------------------------------------------------------------------------------------------------------------------------------|
|
||||
| `model` | [object](#model) | **Yes** | TODO: should be the same panel schema defined in dashboard<br/>Typescript: Omit<Panel, 'gridPos' | 'id' | 'libraryPanel'>; |
|
||||
| `name` | string | **Yes** | Panel name (also saved in the model) |
|
||||
| `type` | string | **Yes** | The panel type (from inside the model) |
|
||||
| `uid` | string | **Yes** | Library element UID |
|
||||
| `version` | integer | **Yes** | panel version, incremented each time the dashboard is updated. |
|
||||
| `description` | string | No | Panel description |
|
||||
| `folderUid` | string | No | Folder UID |
|
||||
| `meta` | [LibraryElementDTOMeta](#libraryelementdtometa) | No | |
|
||||
| `schemaVersion` | integer | No | Dashboard version when this was saved (zero if unknown) |
|
||||
|
||||
## LibraryElementDTOMeta
|
||||
|
||||
### Properties
|
||||
|
||||
| Property | Type | Required | Description |
|
||||
|-----------------------|---------------------------------------------------------|----------|-------------|
|
||||
| `connectedDashboards` | integer | **Yes** | |
|
||||
| `createdBy` | [LibraryElementDTOMetaUser](#libraryelementdtometauser) | **Yes** | |
|
||||
| `created` | string | **Yes** | |
|
||||
| `folderName` | string | **Yes** | |
|
||||
| `folderUid` | string | **Yes** | |
|
||||
| `updatedBy` | [LibraryElementDTOMetaUser](#libraryelementdtometauser) | **Yes** | |
|
||||
| `updated` | string | **Yes** | |
|
||||
|
||||
### LibraryElementDTOMetaUser
|
||||
|
||||
#### Properties
|
||||
|
||||
| Property | Type | Required | Description |
|
||||
|-------------|---------|----------|-------------|
|
||||
| `avatarUrl` | string | **Yes** | |
|
||||
| `id` | integer | **Yes** | |
|
||||
| `name` | string | **Yes** | |
|
||||
|
||||
### LibraryElementDTOMetaUser
|
||||
|
||||
#### Properties
|
||||
|
||||
| Property | Type | Required | Description |
|
||||
|-------------|---------|----------|-------------|
|
||||
| `avatarUrl` | string | **Yes** | |
|
||||
| `id` | integer | **Yes** | |
|
||||
| `name` | string | **Yes** | |
|
||||
|
||||
## model
|
||||
|
||||
TODO: should be the same panel schema defined in dashboard
|
||||
Typescript: Omit<Panel, 'gridPos' | 'id' | 'libraryPanel'>;
|
||||
|
||||
| Property | Type | Required | Description |
|
||||
|----------|------|----------|-------------|
|
||||
|
||||
|
Reference in New Issue
Block a user