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

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

Loading…
Cancel
Save