mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
PublicDashboards: add recipient uid to recipient list (#63982)
This commit is contained in:
parent
68fa7316fa
commit
4cc0399ee5
@ -49,13 +49,18 @@ type PublicDashboard struct {
|
||||
AnnotationsEnabled bool `json:"annotationsEnabled" xorm:"annotations_enabled"`
|
||||
TimeSelectionEnabled bool `json:"timeSelectionEnabled" xorm:"time_selection_enabled"`
|
||||
Share ShareType `json:"share" xorm:"share"`
|
||||
Recipients []string `json:"recipients,omitempty" xorm:"-"`
|
||||
Recipients []EmailDTO `json:"recipients,omitempty" xorm:"-"`
|
||||
CreatedBy int64 `json:"createdBy" xorm:"created_by"`
|
||||
UpdatedBy int64 `json:"updatedBy" xorm:"updated_by"`
|
||||
CreatedAt time.Time `json:"createdAt" xorm:"created_at"`
|
||||
UpdatedAt time.Time `json:"updatedAt" xorm:"updated_at"`
|
||||
}
|
||||
|
||||
type EmailDTO struct {
|
||||
Uid string `json:"uid"`
|
||||
Recipient string `json:"recipient"`
|
||||
}
|
||||
|
||||
// Alias the generated type
|
||||
type DashAnnotation = dashboard.AnnotationQuery
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user