mirror of
https://github.com/grafana/grafana.git
synced 2024-11-29 20:24:18 -06:00
9c3ddda99b
Revert "PublicDashboards: Time range setting added (#60487)"
This reverts commit 6f609dbced
.
80 lines
3.3 KiB
Go
80 lines
3.3 KiB
Go
package dtos
|
|
|
|
import (
|
|
"time"
|
|
|
|
"github.com/grafana/grafana/pkg/components/simplejson"
|
|
)
|
|
|
|
type DashboardMeta struct {
|
|
IsStarred bool `json:"isStarred,omitempty"`
|
|
IsSnapshot bool `json:"isSnapshot,omitempty"`
|
|
Type string `json:"type,omitempty"`
|
|
CanSave bool `json:"canSave"`
|
|
CanEdit bool `json:"canEdit"`
|
|
CanAdmin bool `json:"canAdmin"`
|
|
CanStar bool `json:"canStar"`
|
|
CanDelete bool `json:"canDelete"`
|
|
Slug string `json:"slug"`
|
|
Url string `json:"url"`
|
|
Expires time.Time `json:"expires"`
|
|
Created time.Time `json:"created"`
|
|
Updated time.Time `json:"updated"`
|
|
UpdatedBy string `json:"updatedBy"`
|
|
CreatedBy string `json:"createdBy"`
|
|
Version int `json:"version"`
|
|
HasACL bool `json:"hasAcl" xorm:"has_acl"`
|
|
IsFolder bool `json:"isFolder"`
|
|
FolderId int64 `json:"folderId"`
|
|
FolderUid string `json:"folderUid"`
|
|
FolderTitle string `json:"folderTitle"`
|
|
FolderUrl string `json:"folderUrl"`
|
|
Provisioned bool `json:"provisioned"`
|
|
ProvisionedExternalId string `json:"provisionedExternalId"`
|
|
AnnotationsPermissions *AnnotationPermission `json:"annotationsPermissions"`
|
|
HasPublicDashboard bool `json:"hasPublicDashboard"`
|
|
PublicDashboardAccessToken string `json:"publicDashboardAccessToken"`
|
|
PublicDashboardUID string `json:"publicDashboardUid"`
|
|
PublicDashboardEnabled bool `json:"publicDashboardEnabled"`
|
|
}
|
|
type AnnotationPermission struct {
|
|
Dashboard AnnotationActions `json:"dashboard"`
|
|
Organization AnnotationActions `json:"organization"`
|
|
}
|
|
|
|
type AnnotationActions struct {
|
|
CanAdd bool `json:"canAdd"`
|
|
CanEdit bool `json:"canEdit"`
|
|
CanDelete bool `json:"canDelete"`
|
|
}
|
|
|
|
type DashboardFullWithMeta struct {
|
|
Meta DashboardMeta `json:"meta"`
|
|
Dashboard *simplejson.Json `json:"dashboard"`
|
|
}
|
|
|
|
type TrimDashboardFullWithMeta struct {
|
|
Meta *simplejson.Json `json:"meta"`
|
|
Dashboard *simplejson.Json `json:"dashboard"`
|
|
}
|
|
|
|
type DashboardRedirect struct {
|
|
RedirectUri string `json:"redirectUri"`
|
|
}
|
|
|
|
type CalculateDiffOptions struct {
|
|
Base CalculateDiffTarget `json:"base" binding:"Required"`
|
|
New CalculateDiffTarget `json:"new" binding:"Required"`
|
|
DiffType string `json:"diffType" binding:"Required"`
|
|
}
|
|
|
|
type CalculateDiffTarget struct {
|
|
DashboardId int64 `json:"dashboardId"`
|
|
Version int `json:"version"`
|
|
UnsavedDashboard *simplejson.Json `json:"unsavedDashboard"`
|
|
}
|
|
|
|
type RestoreDashboardVersionCommand struct {
|
|
Version int `json:"version" binding:"Required"`
|
|
}
|