debian-mirror-gitlab/lib/gitlab/metrics/dashboard/validator/schemas/metric.json
2020-10-24 23:57:45 +05:30

16 lines
405 B
JSON

{
"type": "object",
"required": ["unit"],
"oneOf": [{ "required": ["query"] }, { "required": ["query_range"] }],
"properties": {
"id": {
"type": "string",
"format": "add_to_metric_id_cache"
},
"unit": { "type": "string" },
"label": { "type": "string" },
"query": { "type": ["string", "number"] },
"query_range": { "type": ["string", "number"] },
"step": { "type": "number" }
}
}