MCPcopy Index your code
hub / github.com/1Panel-dev/KubePi / Install

Function Install

internal/api/v1/monitor/monitor.go:254–272  ·  view source on GitHub ↗
(parent iris.Party)

Source from the content-addressed store, hash-verified

252}
253
254func Install(parent iris.Party) {
255 handler := NewHandler()
256 grafana := parent.Party("/monitor/grafana")
257 grafana.Get("/", handler.ListGrafana())
258 grafana.Post("/", handler.AddGrafana())
259 grafana.Put("/", handler.UpdateGrafana())
260 grafana.Post("/test/connect", handler.TestConnectGrafana())
261 grafana.Post("/import", handler.ImportDashboardsGrafana())
262
263 metrics := parent.Party("/monitor/metrics")
264 metrics.Post("/", handler.AddMetrics())
265 metrics.Delete("/:name", handler.DeleteMetrics())
266 metrics.Post("/search", handler.SearchMetrics())
267 metrics.Get("/:name", handler.GetMetrics())
268 metrics.Put("/:name", handler.UpdateMetrics())
269 metrics.Get("/:name/explorer", handler.ExplorerMetrics())
270 metrics.Get("/:name/test/connect", handler.TestConnectMetrics())
271 metrics.Get("/:name/query", handler.QueryMetrics())
272}

Callers 1

AddV1RouteFunction · 0.92

Calls 15

ListGrafanaMethod · 0.95
AddGrafanaMethod · 0.95
UpdateGrafanaMethod · 0.95
TestConnectGrafanaMethod · 0.95
AddMetricsMethod · 0.95
DeleteMetricsMethod · 0.95
SearchMetricsMethod · 0.95
GetMetricsMethod · 0.95
UpdateMetricsMethod · 0.95
ExplorerMetricsMethod · 0.95
TestConnectMetricsMethod · 0.95

Tested by

no test coverage detected