From 7923023c3097a4dd777ee79b54546cad5c9d4b14 Mon Sep 17 00:00:00 2001 From: Keisuke Nitta Date: Wed, 15 May 2024 18:53:01 +0900 Subject: [PATCH] add fields for dashboards with Labeled Metrics --- dashboards.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/dashboards.go b/dashboards.go index 9b11725..0c06e35 100644 --- a/dashboards.go +++ b/dashboards.go @@ -123,6 +123,8 @@ type Metric struct { HostID string `json:"hostId,omitempty"` ServiceName string `json:"serviceName,omitempty"` Expression string `json:"expression,omitempty"` + Query string `json:"query,omitempty"` + Legend string `json:"legend,omitempty"` } // MarshalJSON marshals as JSON @@ -150,6 +152,8 @@ type Graph struct { IsStacked bool `json:"isStacked,omitempty"` ServiceName string `json:"serviceName,omitempty"` Expression string `json:"expression,omitempty"` + Query string `json:"query,omitempty"` + Legend string `json:"legend,omitempty"` } // MarshalJSON marshals as JSON