mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
K8s: Implement playlist api with k8s client (#77405)
This commit is contained in:
@@ -47,6 +47,9 @@ type PlaylistDTO struct {
|
||||
|
||||
// Returned for k8s
|
||||
OrgID int64 `json:"-"`
|
||||
|
||||
// Returned for k8s and added as an annotation
|
||||
Id int64 `json:"-"`
|
||||
}
|
||||
|
||||
type PlaylistItemDTO struct {
|
||||
|
||||
@@ -68,6 +68,7 @@ func (s *Service) Get(ctx context.Context, q *playlist.GetPlaylistByUidQuery) (*
|
||||
}
|
||||
}
|
||||
return &playlist.PlaylistDTO{
|
||||
Id: v.Id,
|
||||
Uid: v.UID,
|
||||
Name: v.Name,
|
||||
Interval: v.Interval,
|
||||
|
||||
Reference in New Issue
Block a user