debian-mirror-gitlab/spec/fixtures/lib/gitlab/metrics/dashboard/schemas/metrics.json

24 lines
606 B
JSON
Raw Normal View History

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
}