2019-07-31 22:56:46 +05:30
|
|
|
{
|
2021-06-08 01:23:25 +05:30
|
|
|
"$schema": "http://json-schema.org/draft-07/schema#",
|
2019-07-31 22:56:46 +05:30
|
|
|
"type": "object",
|
|
|
|
"required": [
|
2019-09-04 21:01:54 +05:30
|
|
|
"label",
|
|
|
|
"prometheus_endpoint_path"
|
2019-07-31 22:56:46 +05:30
|
|
|
],
|
|
|
|
"oneOf": [
|
|
|
|
{ "required": ["query"] },
|
|
|
|
{ "required": ["query_range"] }
|
|
|
|
],
|
|
|
|
"properties": {
|
|
|
|
"id": { "type": "string" },
|
2020-10-24 23:57:45 +05:30
|
|
|
"query_range": { "type": ["string", "number"] },
|
|
|
|
"query": { "type": ["string", "number"] },
|
2019-07-31 22:56:46 +05:30
|
|
|
"unit": { "type": "string" },
|
|
|
|
"label": { "type": "string" },
|
2019-09-04 21:01:54 +05:30
|
|
|
"track": { "type": "string" },
|
2019-10-12 21:52:04 +05:30
|
|
|
"prometheus_endpoint_path": { "type": "string" },
|
2020-03-13 15:44:24 +05:30
|
|
|
"metric_id": { "type": "number" },
|
|
|
|
"edit_path": { "type": ["string", "null"] }
|
2019-07-31 22:56:46 +05:30
|
|
|
},
|
|
|
|
"additionalProperties": false
|
|
|
|
}
|