mirror of
https://github.com/datarhei/core.git
synced 2025-10-07 17:01:01 +08:00
Add /v3/metrics (get) endpoint to list all known metrics
This commit is contained in:
@@ -7,6 +7,12 @@ import (
|
||||
"github.com/datarhei/core/v16/monitor"
|
||||
)
|
||||
|
||||
type MetricsDescription struct {
|
||||
Name string `json:"name"`
|
||||
Description string `json:"description"`
|
||||
Labels []string `json:"labels"`
|
||||
}
|
||||
|
||||
type MetricsQueryMetric struct {
|
||||
Name string `json:"name"`
|
||||
Labels map[string]string `json:"labels"`
|
||||
|
Reference in New Issue
Block a user