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

67 lines
1.5 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",
"enum": ["integer", "string", "number", "boolean"]
},
2021-03-08 18:12:59 +05:30
"status": {
"type": ["string"],
2021-03-11 19:13:27 +05:30
"enum": ["data_available", "planned", "in_progress", "implemented"]
2021-03-08 18:12:59 +05:30
},
"milestone": {
"type": ["number", "null"]
},
"milestone_removed": {
"type": ["number", "null"]
},
"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
}
}
}