CloudWatch Logs queue and websocket support (#28176)

CloudWatch Logs queue and websocket support
This commit is contained in:
kay delaney
2020-10-28 08:36:57 +00:00
committed by GitHub
parent e94b37c656
commit c4c5b2dc61
23 changed files with 701 additions and 96 deletions
+1 -5
View File
@@ -9,6 +9,7 @@ import (
"github.com/grafana/grafana/pkg/models"
)
// registerRoutes registers all API HTTP routes.
func (hs *HTTPServer) registerRoutes() {
reqSignedIn := middleware.ReqSignedIn
reqGrafanaAdmin := middleware.ReqGrafanaAdmin
@@ -435,11 +436,6 @@ func (hs *HTTPServer) registerRoutes() {
avatarCacheServer := avatar.NewCacheServer()
r.Get("/avatar/:hash", avatarCacheServer.Handler)
// Live streaming
if hs.Live != nil {
r.Any("/live/*", hs.Live.WebsocketHandler)
}
// Snapshots
r.Post("/api/snapshots/", reqSnapshotPublicModeOrSignedIn, bind(models.CreateDashboardSnapshotCommand{}), CreateDashboardSnapshot)
r.Get("/api/snapshot/shared-options/", reqSignedIn, GetSharingOptions)