diff --git a/dashboards.go b/dashboards.go index cdf2ac4..297992b 100644 --- a/dashboards.go +++ b/dashboards.go @@ -20,6 +20,7 @@ type Dashboard struct { Annotations *Annotations `json:"annotations,omitempty"` Panels []interface{} `json:"panels,omitempty"` Time *Time `json:"time,omitempty"` + Templating *Templating `json:"templating,omitempty"` } type DashboardResult struct { @@ -43,6 +44,10 @@ type Time struct { To string `json:"to"` } +type Templating struct { + List []interface{} `json:"list"` +} + func (s *DashboardsService) GetDashboardByUID(uid string) (*DashboardResult, *Response, error) { u := fmt.Sprintf("dashboards/uid/%s", uid)