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

202 lines
3.3 KiB
JSON
Raw Normal View History

2021-03-08 18:12:59 +05:30
{
"type": "object",
2023-03-17 16:20:25 +05:30
"required": [
"key_path",
"description",
"value_type",
"status",
"product_group",
"product_section",
"product_stage",
"time_frame",
"data_source",
"distribution",
"tier",
"data_category",
"milestone"
],
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": {
2023-03-17 16:20:25 +05:30
"type": [
"string",
"null"
],
2021-04-29 21:17:54 +05:30
"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": {
2023-03-17 16:20:25 +05:30
"type": [
"string"
]
2021-03-08 18:12:59 +05:30
},
2021-03-11 19:13:27 +05:30
"product_stage": {
2023-03-17 16:20:25 +05:30
"type": [
"string"
]
2021-03-08 18:12:59 +05:30
},
2021-03-11 19:13:27 +05:30
"product_group": {
2022-08-13 15:12:31 +05:30
"type": "string",
"pattern": "^$|^([a-z]+_)*[a-z]+$"
2021-03-11 19:13:27 +05:30
},
"product_category": {
2023-03-17 16:20:25 +05:30
"type": [
"string",
"null"
]
2021-03-08 18:12:59 +05:30
},
2021-03-11 19:13:27 +05:30
"value_type": {
"type": "string",
2023-03-17 16:20:25 +05:30
"enum": [
"string",
"number",
"boolean",
"object"
]
2021-03-11 19:13:27 +05:30
},
2021-03-08 18:12:59 +05:30
"status": {
2023-03-17 16:20:25 +05:30
"type": [
"string"
],
"enum": [
"active",
"removed",
"broken"
]
2021-03-08 18:12:59 +05:30
},
"milestone": {
2023-03-17 16:20:25 +05:30
"type": [
"string"
],
2021-11-11 11:23:49 +05:30
"pattern": "^<?[0-9]+\\.[0-9]+$"
2021-03-08 18:12:59 +05:30
},
"milestone_removed": {
2023-03-17 16:20:25 +05:30
"type": [
"string",
"null"
],
2021-04-17 20:07:23 +05:30
"pattern": "^[0-9]+\\.[0-9]+$"
2021-03-08 18:12:59 +05:30
},
"introduced_by_url": {
2023-03-17 16:20:25 +05:30
"type": [
"string",
"null"
]
2021-03-08 18:12:59 +05:30
},
2022-07-16 23:28:13 +05:30
"removed_by_url": {
2023-03-17 16:20:25 +05:30
"type": [
"string",
"null"
]
2022-07-16 23:28:13 +05:30
},
2021-09-04 01:27:46 +05:30
"repair_issue_url": {
2023-03-17 16:20:25 +05:30
"type": [
"string"
]
2021-09-04 01:27:46 +05:30
},
"options": {
2021-06-08 01:23:25 +05:30
"type": "object"
},
2021-03-08 18:12:59 +05:30
"time_frame": {
"type": "string",
2023-03-17 16:20:25 +05:30
"enum": [
"7d",
"28d",
"all",
"none"
]
2021-03-08 18:12:59 +05:30
},
"data_source": {
"type": "string",
2023-03-17 16:20:25 +05:30
"enum": [
"database",
"redis",
"redis_hll",
"prometheus",
"system",
"license"
]
2021-09-04 01:27:46 +05:30
},
"data_category": {
"type": "string",
2023-03-17 16:20:25 +05:30
"enum": [
"Operational",
"Optional",
"Subscription",
"Standard",
"operational",
"optional",
"subscription",
"standard"
]
2021-06-08 01:23:25 +05:30
},
"instrumentation_class": {
"type": "string",
2021-09-04 01:27:46 +05:30
"pattern": "^(([A-Z][a-z]+)+::)*(([A-Z]+[a-z]+)+)$"
2021-03-08 18:12:59 +05:30
},
"distribution": {
"type": "array",
"items": {
"type": "string",
2023-03-17 16:20:25 +05:30
"enum": [
"ee",
"ce"
]
2021-03-08 18:12:59 +05:30
}
},
2021-10-27 15:23:28 +05:30
"performance_indicator_type": {
"type": "array",
"items": {
"type": "string",
2023-03-17 16:20:25 +05:30
"enum": [
"gmau",
"smau",
"paid_gmau",
"umau",
"customer_health_score"
]
2021-10-27 15:23:28 +05:30
}
},
2021-03-08 18:12:59 +05:30
"tier": {
"type": "array",
"items": {
"type": "string",
2023-03-17 16:20:25 +05:30
"enum": [
"free",
"starter",
"premium",
"ultimate",
"bronze",
"silver",
"gold"
]
2021-03-08 18:12:59 +05:30
}
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
}
2021-09-04 01:27:46 +05:30
},
"allOf": [
{
"if": {
"properties": {
2023-03-17 16:20:25 +05:30
"status": {
"const": "broken"
}
2021-09-04 01:27:46 +05:30
}
},
"then": {
2023-03-17 16:20:25 +05:30
"required": [
"repair_issue_url"
]
2021-09-04 01:27:46 +05:30
}
}
]
2023-03-17 16:20:25 +05:30
}