mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Chore: Fix times in schemas (#64906)
* Fix times in schemas * Fix frontend lints
This commit is contained in:
@@ -35,6 +35,7 @@ spec:
|
||||
format: int64
|
||||
type: integer
|
||||
created:
|
||||
format: date-time
|
||||
type: string
|
||||
createdBy:
|
||||
properties:
|
||||
@@ -55,6 +56,7 @@ spec:
|
||||
folderUid:
|
||||
type: string
|
||||
updated:
|
||||
format: date-time
|
||||
type: string
|
||||
updatedBy:
|
||||
properties:
|
||||
|
||||
@@ -10,14 +10,18 @@
|
||||
|
||||
package librarypanel
|
||||
|
||||
import (
|
||||
"time"
|
||||
)
|
||||
|
||||
// LibraryElementDTOMeta defines model for LibraryElementDTOMeta.
|
||||
type LibraryElementDTOMeta struct {
|
||||
ConnectedDashboards int64 `json:"connectedDashboards"`
|
||||
Created string `json:"created"`
|
||||
Created time.Time `json:"created"`
|
||||
CreatedBy LibraryElementDTOMetaUser `json:"createdBy"`
|
||||
FolderName string `json:"folderName"`
|
||||
FolderUid string `json:"folderUid"`
|
||||
Updated string `json:"updated"`
|
||||
Updated time.Time `json:"updated"`
|
||||
UpdatedBy LibraryElementDTOMetaUser `json:"updatedBy"`
|
||||
}
|
||||
|
||||
|
||||
@@ -34,8 +34,8 @@ spec:
|
||||
type: string
|
||||
created:
|
||||
description: Created indicates when the service account was created.
|
||||
format: int64
|
||||
type: integer
|
||||
format: date-time
|
||||
type: string
|
||||
id:
|
||||
description: ID is the unique identifier of the service account in the database.
|
||||
format: int64
|
||||
@@ -73,8 +73,8 @@ spec:
|
||||
type: integer
|
||||
updated:
|
||||
description: Updated indicates when the service account was updated.
|
||||
format: int64
|
||||
type: integer
|
||||
format: date-time
|
||||
type: string
|
||||
required:
|
||||
- id
|
||||
- orgId
|
||||
|
||||
@@ -10,6 +10,10 @@
|
||||
|
||||
package serviceaccount
|
||||
|
||||
import (
|
||||
"time"
|
||||
)
|
||||
|
||||
// Defines values for OrgRole.
|
||||
const (
|
||||
OrgRoleAdmin OrgRole = "Admin"
|
||||
@@ -30,7 +34,7 @@ type ServiceAccount struct {
|
||||
AvatarUrl string `json:"avatarUrl"`
|
||||
|
||||
// Created indicates when the service account was created.
|
||||
Created *int64 `json:"created,omitempty"`
|
||||
Created *time.Time `json:"created,omitempty"`
|
||||
|
||||
// ID is the unique identifier of the service account in the database.
|
||||
Id int64 `json:"id"`
|
||||
@@ -58,5 +62,5 @@ type ServiceAccount struct {
|
||||
Tokens int64 `json:"tokens"`
|
||||
|
||||
// Updated indicates when the service account was updated.
|
||||
Updated *int64 `json:"updated,omitempty"`
|
||||
Updated *time.Time `json:"updated,omitempty"`
|
||||
}
|
||||
|
||||
@@ -32,8 +32,8 @@ spec:
|
||||
type: string
|
||||
created:
|
||||
description: Created indicates when the team was created.
|
||||
format: int64
|
||||
type: integer
|
||||
format: date-time
|
||||
type: string
|
||||
email:
|
||||
description: Email of the team.
|
||||
type: string
|
||||
@@ -58,8 +58,8 @@ spec:
|
||||
type: integer
|
||||
updated:
|
||||
description: Updated indicates when the team was updated.
|
||||
format: int64
|
||||
type: integer
|
||||
format: date-time
|
||||
type: string
|
||||
required:
|
||||
- orgId
|
||||
- name
|
||||
|
||||
@@ -10,6 +10,10 @@
|
||||
|
||||
package team
|
||||
|
||||
import (
|
||||
"time"
|
||||
)
|
||||
|
||||
// Defines values for Permission.
|
||||
const (
|
||||
PermissionN0 Permission = 0
|
||||
@@ -30,7 +34,7 @@ type Team struct {
|
||||
AvatarUrl *string `json:"avatarUrl,omitempty"`
|
||||
|
||||
// Created indicates when the team was created.
|
||||
Created int64 `json:"created"`
|
||||
Created time.Time `json:"created"`
|
||||
|
||||
// Email of the team.
|
||||
Email *string `json:"email,omitempty"`
|
||||
@@ -46,5 +50,5 @@ type Team struct {
|
||||
Permission Permission `json:"permission"`
|
||||
|
||||
// Updated indicates when the team was updated.
|
||||
Updated int64 `json:"updated"`
|
||||
Updated time.Time `json:"updated"`
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user