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:
rpereira2 2019-04-17 15:35:11 +05:30 committed by syasonik
parent c2818d6b23
commit f029c3dd39
1 changed files with 4 additions and 0 deletions

View File

@ -4,6 +4,10 @@
"unit",
"label"
],
"oneOf": [
{ "required": ["query"] },
{ "required": ["query_range"] }
],
"properties": {
"id": { "type": "string" },
"query_range": { "type": "string" },