mirror of
https://github.com/grafana/grafana.git
synced 2024-12-02 05:29:42 -06:00
0316350d16
* Chore: Update thema to latest * Regenerate
62 lines
1.8 KiB
Go
62 lines
1.8 KiB
Go
// Code generated - EDITING IS FUTILE. DO NOT EDIT.
|
|
//
|
|
// Generated by:
|
|
// kinds/gen.go
|
|
// Using jennies:
|
|
// GoResourceTypes
|
|
//
|
|
// Run 'make gen-cue' from repository root to regenerate.
|
|
|
|
package librarypanel
|
|
|
|
import (
|
|
"time"
|
|
)
|
|
|
|
// LibraryElementDTOMeta defines model for LibraryElementDTOMeta.
|
|
type LibraryElementDTOMeta struct {
|
|
ConnectedDashboards int64 `json:"connectedDashboards"`
|
|
Created time.Time `json:"created"`
|
|
CreatedBy LibraryElementDTOMetaUser `json:"createdBy"`
|
|
FolderName string `json:"folderName"`
|
|
FolderUid string `json:"folderUid"`
|
|
Updated time.Time `json:"updated"`
|
|
UpdatedBy LibraryElementDTOMetaUser `json:"updatedBy"`
|
|
}
|
|
|
|
// LibraryElementDTOMetaUser defines model for LibraryElementDTOMetaUser.
|
|
type LibraryElementDTOMetaUser struct {
|
|
AvatarUrl string `json:"avatarUrl"`
|
|
Id int64 `json:"id"`
|
|
Name string `json:"name"`
|
|
}
|
|
|
|
// Spec defines model for Spec.
|
|
type Spec struct {
|
|
// Panel description
|
|
Description *string `json:"description,omitempty"`
|
|
|
|
// Folder UID
|
|
FolderUid *string `json:"folderUid,omitempty"`
|
|
Meta *LibraryElementDTOMeta `json:"meta,omitempty"`
|
|
|
|
// TODO: should be the same panel schema defined in dashboard
|
|
// Typescript: Omit<Panel, 'gridPos' | 'id' | 'libraryPanel'>;
|
|
Model map[string]any `json:"model"`
|
|
|
|
// Panel name (also saved in the model)
|
|
Name string `json:"name"`
|
|
|
|
// Dashboard version when this was saved (zero if unknown)
|
|
SchemaVersion *int `json:"schemaVersion,omitempty"`
|
|
|
|
// The panel type (from inside the model)
|
|
Type string `json:"type"`
|
|
|
|
// Library element UID
|
|
Uid string `json:"uid"`
|
|
|
|
// Version panel version, incremented each time the dashboard is updated.
|
|
Version int64 `json:"version"`
|
|
}
|