25 lines
662 B
JSON
25 lines
662 B
JSON
{
|
|
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
"type": "object",
|
|
"required": [
|
|
"label",
|
|
"prometheus_endpoint_path"
|
|
],
|
|
"oneOf": [
|
|
{ "required": ["query"] },
|
|
{ "required": ["query_range"] }
|
|
],
|
|
"properties": {
|
|
"id": { "type": "string" },
|
|
"query_range": { "type": ["string", "number"] },
|
|
"query": { "type": ["string", "number"] },
|
|
"unit": { "type": "string" },
|
|
"label": { "type": "string" },
|
|
"track": { "type": "string" },
|
|
"prometheus_endpoint_path": { "type": "string" },
|
|
"metric_id": { "type": "number" },
|
|
"edit_path": { "type": ["string", "null"] }
|
|
},
|
|
"additionalProperties": false
|
|
}
|