annotations: add endpoint for writing graphite-like events (#9495)

* annotations: add endpoint for writing graphite-like events

* annotations: fix new line handling in tooltip

* annotations: support tags in prior to Graphite 0.10.0 format
This commit is contained in:
Alexander Zobnin
2017-10-12 10:12:15 +02:00
committed by Torkel Ödegaard
parent 19a57f7cb1
commit 04ea7efac9
4 changed files with 67 additions and 1 deletions
+7
View File
@@ -29,3 +29,10 @@ type DeleteAnnotationsCmd struct {
AnnotationId int64 `json:"annotationId"`
RegionId int64 `json:"regionId"`
}
type PostGraphiteAnnotationsCmd struct {
When int64 `json:"when"`
What string `json:"what"`
Data string `json:"data"`
Tags interface{} `json:"tags"`
}