Chore: Update times in dashboards (#65179)

Update times in dashboards
pull/65189/head
Selene 2 years ago committed by GitHub
parent 01a5d5042d
commit b3d0c39f08
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 9
      kinds/dashboard/dashboard_kind.cue
  2. 8
      pkg/kinds/dashboard/dashboard_types_gen.go

@ -1,6 +1,9 @@
package kind
import "strings"
import (
"strings"
t "time"
)
name: "Dashboard"
maturity: "experimental"
@ -322,7 +325,7 @@ lineage: seqs: [
// TODO docs
#Snapshot: {
// TODO docs
created: string @grafanamaturity(NeedsExpertReview)
created: string & t.Time
// TODO docs
expires: string @grafanamaturity(NeedsExpertReview)
// TODO docs
@ -338,7 +341,7 @@ lineage: seqs: [
// TODO docs
orgId: uint32 @grafanamaturity(NeedsExpertReview)
// TODO docs
updated: string @grafanamaturity(NeedsExpertReview)
updated: string & t.Time
// TODO docs
url?: string @grafanamaturity(NeedsExpertReview)
// TODO docs

@ -10,6 +10,10 @@
package dashboard
import (
"time"
)
// Defines values for Style.
const (
StyleDark Style = "dark"
@ -633,7 +637,7 @@ type RowPanelType string
// TODO docs
type Snapshot struct {
// TODO docs
Created string `json:"created"`
Created time.Time `json:"created"`
// TODO docs
Expires string `json:"expires"`
@ -657,7 +661,7 @@ type Snapshot struct {
OrgId int `json:"orgId"`
// TODO docs
Updated string `json:"updated"`
Updated time.Time `json:"updated"`
// TODO docs
Url *string `json:"url,omitempty"`

Loading…
Cancel
Save