fix: add legend property to Queries (#2821)

This commit is contained in:
Vishal Sharma 2023-06-06 06:05:48 +05:30 committed by GitHub
parent e73432df83
commit a3c917cca0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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"`