forked from mtusi2026/mtusi2026lab6
test: add SLO incident verification
This commit is contained in:
@@ -0,0 +1,37 @@
|
||||
{
|
||||
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
||||
"$id": "https://gitea.privcloud.tech/mtusi2026/mtusi2026lab6/evidence/lab6-schema.json",
|
||||
"title": "Lab 6 incident summary",
|
||||
"type": "object",
|
||||
"required": [
|
||||
"schema_version",
|
||||
"incident",
|
||||
"started_at",
|
||||
"recovery_started_at",
|
||||
"recovered_at",
|
||||
"injected_duration_seconds",
|
||||
"recovery_observation_seconds",
|
||||
"artifacts"
|
||||
],
|
||||
"properties": {
|
||||
"schema_version": {"const": 1},
|
||||
"incident": {
|
||||
"enum": ["worker_unavailable", "postgres_unavailable", "telemetry_backends_unavailable"]
|
||||
},
|
||||
"profile": {"enum": ["short", "long"]},
|
||||
"started_at": {"type": "string", "format": "date-time"},
|
||||
"recovery_started_at": {"type": "string", "format": "date-time"},
|
||||
"recovered_at": {"type": "string", "format": "date-time"},
|
||||
"planned_injection_seconds": {"type": "integer", "minimum": 1},
|
||||
"injected_duration_seconds": {"type": "integer", "minimum": 1},
|
||||
"recovery_observation_seconds": {"type": "integer", "minimum": 0},
|
||||
"api_ready_http_status_during_outage": {"type": "integer", "minimum": 100, "maximum": 599},
|
||||
"artifacts": {
|
||||
"type": "array",
|
||||
"items": {"type": "string", "pattern": "^[A-Za-z0-9._-]+$"},
|
||||
"minItems": 4,
|
||||
"uniqueItems": true
|
||||
}
|
||||
},
|
||||
"additionalProperties": false
|
||||
}
|
||||
Reference in New Issue
Block a user