| 
									
										
										
										
											2016-09-08 17:25:45 +08:00
										 |  |  | package dtos | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | import "github.com/grafana/grafana/pkg/components/simplejson" | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2017-04-11 01:22:58 +08:00
										 |  |  | type PostAnnotationsCmd struct { | 
					
						
							| 
									
										
										
										
											2017-10-07 16:31:39 +08:00
										 |  |  | 	DashboardId int64            `json:"dashboardId"` | 
					
						
							|  |  |  | 	PanelId     int64            `json:"panelId"` | 
					
						
							|  |  |  | 	Time        int64            `json:"time"` | 
					
						
							| 
									
										
										
										
											2019-08-16 16:49:30 +08:00
										 |  |  | 	TimeEnd     int64            `json:"timeEnd,omitempty"` // Optional
 | 
					
						
							| 
									
										
										
										
											2017-10-07 16:31:39 +08:00
										 |  |  | 	Text        string           `json:"text"` | 
					
						
							|  |  |  | 	Tags        []string         `json:"tags"` | 
					
						
							|  |  |  | 	Data        *simplejson.Json `json:"data"` | 
					
						
							|  |  |  | } | 
					
						
							| 
									
										
										
										
											2017-04-12 22:26:34 +08:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2017-10-07 16:31:39 +08:00
										 |  |  | type UpdateAnnotationsCmd struct { | 
					
						
							| 
									
										
										
										
											2019-08-16 16:49:30 +08:00
										 |  |  | 	Id      int64    `json:"id"` | 
					
						
							|  |  |  | 	Time    int64    `json:"time"` | 
					
						
							|  |  |  | 	TimeEnd int64    `json:"timeEnd,omitempty"` // Optional
 | 
					
						
							|  |  |  | 	Text    string   `json:"text"` | 
					
						
							|  |  |  | 	Tags    []string `json:"tags"` | 
					
						
							| 
									
										
										
										
											2017-04-11 01:22:58 +08:00
										 |  |  | } | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2019-01-27 19:49:22 +08:00
										 |  |  | type PatchAnnotationsCmd struct { | 
					
						
							| 
									
										
										
										
											2019-02-06 04:41:39 +08:00
										 |  |  | 	Id      int64    `json:"id"` | 
					
						
							|  |  |  | 	Time    int64    `json:"time"` | 
					
						
							| 
									
										
										
										
											2019-08-16 16:49:30 +08:00
										 |  |  | 	TimeEnd int64    `json:"timeEnd,omitempty"` // Optional
 | 
					
						
							| 
									
										
										
										
											2019-02-06 04:41:39 +08:00
										 |  |  | 	Text    string   `json:"text"` | 
					
						
							|  |  |  | 	Tags    []string `json:"tags"` | 
					
						
							| 
									
										
										
										
											2019-01-27 19:49:22 +08:00
										 |  |  | } | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2016-10-14 15:33:16 +08:00
										 |  |  | type DeleteAnnotationsCmd struct { | 
					
						
							| 
									
										
										
										
											2017-10-07 16:31:39 +08:00
										 |  |  | 	AlertId      int64 `json:"alertId"` | 
					
						
							|  |  |  | 	DashboardId  int64 `json:"dashboardId"` | 
					
						
							|  |  |  | 	PanelId      int64 `json:"panelId"` | 
					
						
							|  |  |  | 	AnnotationId int64 `json:"annotationId"` | 
					
						
							| 
									
										
										
										
											2016-10-14 15:33:16 +08:00
										 |  |  | } | 
					
						
							| 
									
										
										
										
											2017-10-12 16:12:15 +08:00
										 |  |  | 
 | 
					
						
							|  |  |  | type PostGraphiteAnnotationsCmd struct { | 
					
						
							|  |  |  | 	When int64       `json:"when"` | 
					
						
							|  |  |  | 	What string      `json:"what"` | 
					
						
							|  |  |  | 	Data string      `json:"data"` | 
					
						
							|  |  |  | 	Tags interface{} `json:"tags"` | 
					
						
							|  |  |  | } |