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

69 lines
1.6 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"
},
"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-17 20:07:23 +05:30
"enum": ["data_available", "planned", "in_progress", "implemented", "not_used", "deprecated"]
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"]
},
"time_frame": {
"type": "string",
"enum": ["7d", "28d", "all", "none"]
},
"data_source": {
"type": "string",
"enum": ["database", "redis", "redis_hll", "prometheus", "ruby"]
},
"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-03-08 18:12:59 +05:30
}
}
}