Prometheus: Add BE support for Adhoc Filters (#85969)
--------- Co-authored-by: ismail simsek <ismailsimsek09@gmail.com>
This commit is contained in:
co-authored by
ismail simsek
parent
8520892923
commit
a12669951b
@@ -24,6 +24,31 @@
|
||||
"expr"
|
||||
],
|
||||
"properties": {
|
||||
"adhocFilters": {
|
||||
"description": "Additional Ad-hoc filters that take precedence over Scope on conflict.",
|
||||
"type": "array",
|
||||
"items": {
|
||||
"description": "ScopeFilter is a hand copy of the ScopeFilter struct from pkg/apis/scope/v0alpha1/types.go to avoid import (temp fix)",
|
||||
"type": "object",
|
||||
"required": [
|
||||
"key",
|
||||
"value",
|
||||
"operator"
|
||||
],
|
||||
"properties": {
|
||||
"key": {
|
||||
"type": "string"
|
||||
},
|
||||
"operator": {
|
||||
"type": "string"
|
||||
},
|
||||
"value": {
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"additionalProperties": false
|
||||
}
|
||||
},
|
||||
"datasource": {
|
||||
"description": "The datasource",
|
||||
"type": "object",
|
||||
@@ -148,7 +173,7 @@
|
||||
"additionalProperties": false
|
||||
},
|
||||
"scope": {
|
||||
"description": "???",
|
||||
"description": "A set of filters applied to apply to the query",
|
||||
"type": "object",
|
||||
"required": [
|
||||
"title",
|
||||
|
||||
Reference in New Issue
Block a user