@@ -9,22 +9,23 @@ import (
9
9
10
10
// Annotation represents a Grafana API Annotation
11
11
type Annotation struct {
12
- ID int64 `json:"id,omitempty"`
13
- AlertID int64 `json:"alertId,omitempty"`
14
- DashboardID int64 `json:"dashboardId"`
15
- PanelID int64 `json:"panelId"`
16
- UserID int64 `json:"userId,omitempty"`
17
- UserName string `json:"userName,omitempty"`
18
- NewState string `json:"newState,omitempty"`
19
- PrevState string `json:"prevState,omitempty"`
20
- Time int64 `json:"time"`
21
- TimeEnd int64 `json:"timeEnd,omitempty"`
22
- Text string `json:"text"`
23
- Metric string `json:"metric,omitempty"`
24
- RegionID int64 `json:"regionId,omitempty"`
25
- Type string `json:"type,omitempty"`
26
- Tags []string `json:"tags,omitempty"`
27
- IsRegion bool `json:"isRegion,omitempty"`
12
+ ID int64 `json:"id,omitempty"`
13
+ AlertID int64 `json:"alertId,omitempty"`
14
+ DashboardID int64 `json:"dashboardId,omitempty"`
15
+ DashboardUID string `json:"dashboardUID,omitempty"`
16
+ PanelID int64 `json:"panelId"`
17
+ UserID int64 `json:"userId,omitempty"`
18
+ UserName string `json:"userName,omitempty"`
19
+ NewState string `json:"newState,omitempty"`
20
+ PrevState string `json:"prevState,omitempty"`
21
+ Time int64 `json:"time"`
22
+ TimeEnd int64 `json:"timeEnd,omitempty"`
23
+ Text string `json:"text"`
24
+ Metric string `json:"metric,omitempty"`
25
+ RegionID int64 `json:"regionId,omitempty"`
26
+ Type string `json:"type,omitempty"`
27
+ Tags []string `json:"tags,omitempty"`
28
+ IsRegion bool `json:"isRegion,omitempty"`
28
29
}
29
30
30
31
// GraphiteAnnotation represents a Grafana API annotation in Graphite format
0 commit comments