Make query or query_range required in metrics
Either the query or query_range attribute needs to be present in the metrics yml. The yml is invalid if both are present or neither is present.
This commit is contained in:
parent
c2818d6b23
commit
f029c3dd39
|
@ -4,6 +4,10 @@
|
|||
"unit",
|
||||
"label"
|
||||
],
|
||||
"oneOf": [
|
||||
{ "required": ["query"] },
|
||||
{ "required": ["query_range"] }
|
||||
],
|
||||
"properties": {
|
||||
"id": { "type": "string" },
|
||||
"query_range": { "type": "string" },
|
||||
|
|
Loading…
Reference in New Issue