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:
committed by
Torkel Ödegaard
parent
19a57f7cb1
commit
04ea7efac9
@@ -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"`
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user