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