mirror of
https://github.com/grafana/grafana.git
synced 2025-07-30 22:52:20 +08:00
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
@ -292,6 +292,7 @@ func (hs *HttpServer) registerRoutes() {
|
||||
annotationsRoute.Delete("/:annotationId", wrap(DeleteAnnotationById))
|
||||
annotationsRoute.Put("/:annotationId", bind(dtos.UpdateAnnotationsCmd{}), wrap(UpdateAnnotation))
|
||||
annotationsRoute.Delete("/region/:regionId", wrap(DeleteAnnotationRegion))
|
||||
annotationsRoute.Post("/graphite", bind(dtos.PostGraphiteAnnotationsCmd{}), wrap(PostGraphiteAnnotation))
|
||||
}, reqEditorRole)
|
||||
|
||||
// error test
|
||||
|
Reference in New Issue
Block a user