Skip to content

Commit

Permalink
add fields for dashboards with Labeled Metrics
Browse files Browse the repository at this point in the history
  • Loading branch information
tosuke committed May 15, 2024
1 parent a304dae commit 7923023
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions dashboards.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 7923023

Please sign in to comment.