debian-mirror-gitlab/config/metrics/schema.json
2021-06-08 01:23:25 +05:30

82 lines
1.9 KiB
JSON

{
"type": "object",
"required": ["key_path", "description", "value_type", "status", "product_group", "time_frame", "data_source", "distribution", "tier"],
"properties": {
"key_path": {
"type": "string"
},
"name": {
"type": ["string", "null"],
"pattern": "^([a-z]+_)*[a-z]+$"
},
"description": {
"type": "string"
},
"product_section": {
"type": ["string", "null"]
},
"product_stage": {
"type": ["string", "null"]
},
"product_group": {
"type": "string"
},
"product_category": {
"type": ["string", "null"]
},
"value_type": {
"type": "string",
"enum": ["string", "number", "boolean", "object"]
},
"status": {
"type": ["string"],
"enum": ["data_available", "implemented", "not_used", "deprecated", "removed"]
},
"milestone": {
"type": ["string", "null"],
"pattern": "^[0-9]+\\.[0-9]+$"
},
"milestone_removed": {
"type": ["string", "null"],
"pattern": "^[0-9]+\\.[0-9]+$"
},
"introduced_by_url": {
"type": ["string", "null"]
},
"extra": {
"type": "object"
},
"time_frame": {
"type": "string",
"enum": ["7d", "28d", "all", "none"]
},
"data_source": {
"type": "string",
"enum": ["database", "redis", "redis_hll", "prometheus", "system"]
},
"instrumentation_class": {
"type": "string",
"pattern": "^(([A-Z][a-z]+)+::)*(([A-Z][a-z]+)+)$"
},
"distribution": {
"type": "array",
"items": {
"type": "string",
"enum": ["ee", "ce"]
}
},
"tier": {
"type": "array",
"items": {
"type": "string",
"enum": ["free", "starter", "premium", "ultimate", "bronze", "silver", "gold"]
}
},
"skip_validation": {
"type": "boolean"
},
"value_json_schema": {
"type": "string"
}
}
}