debian-mirror-gitlab/config/metrics/schema.json

83 lines
1.9 KiB
JSON
Raw Normal View History

2021-03-08 18:12:59 +05:30
{
"type": "object",
2021-03-11 19:13:27 +05:30
"required": ["key_path", "description", "value_type", "status", "product_group", "time_frame", "data_source", "distribution", "tier"],
2021-03-08 18:12:59 +05:30
"properties": {
2021-03-11 19:13:27 +05:30
"key_path": {
2021-03-08 18:12:59 +05:30
"type": "string"
},
2021-04-29 21:17:54 +05:30
"name": {
"type": ["string", "null"],
"pattern": "^([a-z]+_)*[a-z]+$"
},
2021-03-08 18:12:59 +05:30
"description": {
"type": "string"
},
2021-03-11 19:13:27 +05:30
"product_section": {
"type": ["string", "null"]
2021-03-08 18:12:59 +05:30
},
2021-03-11 19:13:27 +05:30
"product_stage": {
2021-03-08 18:12:59 +05:30
"type": ["string", "null"]
},
2021-03-11 19:13:27 +05:30
"product_group": {
"type": "string"
},
"product_category": {
2021-03-08 18:12:59 +05:30
"type": ["string", "null"]
},
2021-03-11 19:13:27 +05:30
"value_type": {
"type": "string",
2021-04-17 20:07:23 +05:30
"enum": ["string", "number", "boolean", "object"]
2021-03-11 19:13:27 +05:30
},
2021-03-08 18:12:59 +05:30
"status": {
"type": ["string"],
2021-04-29 21:17:54 +05:30
"enum": ["data_available", "implemented", "not_used", "deprecated", "removed"]
2021-03-08 18:12:59 +05:30
},
"milestone": {
2021-04-17 20:07:23 +05:30
"type": ["string", "null"],
"pattern": "^[0-9]+\\.[0-9]+$"
2021-03-08 18:12:59 +05:30
},
"milestone_removed": {
2021-04-17 20:07:23 +05:30
"type": ["string", "null"],
"pattern": "^[0-9]+\\.[0-9]+$"
2021-03-08 18:12:59 +05:30
},
"introduced_by_url": {
"type": ["string", "null"]
},
2021-06-08 01:23:25 +05:30
"extra": {
"type": "object"
},
2021-03-08 18:12:59 +05:30
"time_frame": {
"type": "string",
"enum": ["7d", "28d", "all", "none"]
},
"data_source": {
"type": "string",
2021-06-08 01:23:25 +05:30
"enum": ["database", "redis", "redis_hll", "prometheus", "system"]
},
"instrumentation_class": {
"type": "string",
"pattern": "^(([A-Z][a-z]+)+::)*(([A-Z][a-z]+)+)$"
2021-03-08 18:12:59 +05:30
},
"distribution": {
"type": "array",
"items": {
"type": "string",
"enum": ["ee", "ce"]
}
},
"tier": {
"type": "array",
"items": {
"type": "string",
"enum": ["free", "starter", "premium", "ultimate", "bronze", "silver", "gold"]
}
2021-03-11 19:13:27 +05:30
},
"skip_validation": {
"type": "boolean"
2021-06-08 01:23:25 +05:30
},
"value_json_schema": {
"type": "string"
2021-03-08 18:12:59 +05:30
}
}
}