debian-mirror-gitlab/lib/gitlab/metrics/dashboard/validator/schemas/metric.json

17 lines
405 B
JSON
Raw Normal View History

2020-10-24 23:57:45 +05:30
{
"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" }
}
}