2021-03-08 18:12:59 +05:30
|
|
|
{
|
|
|
|
"type": "object",
|
2021-12-11 22:18:48 +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": {
|
|
|
|
"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": {
|
2021-12-11 22:18:48 +05:30
|
|
|
"type": ["string"]
|
2021-03-08 18:12:59 +05:30
|
|
|
},
|
2021-03-11 19:13:27 +05:30
|
|
|
"product_stage": {
|
2021-12-11 22:18:48 +05:30
|
|
|
"type": ["string"]
|
2021-03-08 18:12:59 +05:30
|
|
|
},
|
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-11-11 11:23:49 +05:30
|
|
|
"enum": ["active", "deprecated", "removed", "broken"]
|
2021-03-08 18:12:59 +05:30
|
|
|
},
|
|
|
|
"milestone": {
|
2021-11-11 11:23:49 +05:30
|
|
|
"type": ["string"],
|
|
|
|
"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-09-04 01:27:46 +05:30
|
|
|
"repair_issue_url": {
|
|
|
|
"type": ["string"]
|
|
|
|
},
|
|
|
|
"options": {
|
2021-06-08 01:23:25 +05:30
|
|
|
"type": "object"
|
|
|
|
},
|
2021-03-08 18:12:59 +05:30
|
|
|
"time_frame": {
|
|
|
|
"type": "string",
|
|
|
|
"enum": ["7d", "28d", "all", "none"]
|
|
|
|
},
|
|
|
|
"data_source": {
|
|
|
|
"type": "string",
|
2021-09-04 01:27:46 +05:30
|
|
|
"enum": ["database", "redis", "redis_hll", "prometheus", "system", "license"]
|
|
|
|
},
|
|
|
|
"data_category": {
|
|
|
|
"type": "string",
|
2021-10-27 15:23:28 +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",
|
|
|
|
"enum": ["ee", "ce"]
|
|
|
|
}
|
|
|
|
},
|
2021-10-27 15:23:28 +05:30
|
|
|
"performance_indicator_type": {
|
|
|
|
"type": "array",
|
|
|
|
"items": {
|
|
|
|
"type": "string",
|
|
|
|
"enum": ["gmau", "smau", "paid_gmau", "umau"]
|
|
|
|
}
|
|
|
|
},
|
2021-03-08 18:12:59 +05:30
|
|
|
"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
|
|
|
}
|
2021-09-04 01:27:46 +05:30
|
|
|
},
|
|
|
|
"allOf": [
|
|
|
|
{
|
|
|
|
"if": {
|
|
|
|
"properties": {
|
|
|
|
"status": { "const": "broken" }
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"then": {
|
|
|
|
"required": ["repair_issue_url"]
|
|
|
|
}
|
|
|
|
}
|
|
|
|
]
|
2021-03-08 18:12:59 +05:30
|
|
|
}
|