mirror of
https://git.mirrors.martin98.com/https://github.com/SigNoz/signoz
synced 2025-08-14 20:45:54 +08:00
fix: add legend property to Queries (#2821)
This commit is contained in:
parent
e73432df83
commit
a3c917cca0
@ -325,6 +325,7 @@ type PromQuery struct {
|
||||
Query string `json:"query"`
|
||||
Stats string `json:"stats,omitempty"`
|
||||
Disabled bool `json:"disabled"`
|
||||
Legend string `json:"legend,omitempty"`
|
||||
}
|
||||
|
||||
func (p *PromQuery) Validate() error {
|
||||
@ -342,6 +343,7 @@ func (p *PromQuery) Validate() error {
|
||||
type ClickHouseQuery struct {
|
||||
Query string `json:"query"`
|
||||
Disabled bool `json:"disabled"`
|
||||
Legend string `json:"legend,omitempty"`
|
||||
}
|
||||
|
||||
func (c *ClickHouseQuery) Validate() error {
|
||||
@ -419,6 +421,7 @@ type BuilderQuery struct {
|
||||
Expression string `json:"expression"`
|
||||
Disabled bool `json:"disabled"`
|
||||
Having []Having `json:"having,omitempty"`
|
||||
Legend string `json:"legend,omitempty"`
|
||||
Limit uint64 `json:"limit"`
|
||||
Offset uint64 `json:"offset"`
|
||||
PageSize uint64 `json:"pageSize"`
|
||||
|
Loading…
x
Reference in New Issue
Block a user