Skip to content

Commit

Permalink
Merge pull request #155 from tosuke/query-dashboard
Browse files Browse the repository at this point in the history
add fields for dashboards with Labeled Metrics
  • Loading branch information
azukiazusa1 authored May 16, 2024
2 parents a304dae + 7923023 commit 95ea74a
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 95ea74a

Please sign in to comment.