cc-backend/json-schema/job-statistic.schema.json

30 lines
813 B
JSON
Raw Normal View History

2019-09-06 10:44:04 +02:00
{
"$schema": "http://json-schema.org/draft-07/schema#",
"$id": "http://example.com/job-statistic.schema.json",
"title": "Job statistics",
"description": "Format specification for job metric statistics",
"type": "object",
"properties": {
"unit": {
"description": "Metric unit",
"type": "string"
},
"avg": {
"description": "Job metric average",
"type": "number",
"minimum": 0
},
"min": {
"description": "Job metric minimum",
"type": "number",
"minimum": 0
},
"max": {
"description": "Job metric maximum",
"type": "number",
"minimum": 0
}
},
"required": [ "unit", "avg", "min", "max" ]
}