Public source validation / validate (push) Failing after 3m8s
54 lines
1.2 KiB
JSON
54 lines
1.2 KiB
JSON
{
|
|
"schemaVersion": 1,
|
|
"id": "service-down-container-running",
|
|
"name": "Service down while container runs",
|
|
"description": "Proves application health is independent from Docker running state.",
|
|
"initialState": {
|
|
"container": {
|
|
"id": "fixture-app",
|
|
"status": "running"
|
|
},
|
|
"service": {
|
|
"id": "fixture-http",
|
|
"status": "up",
|
|
"latencyMs": 80
|
|
}
|
|
},
|
|
"timeline": [
|
|
{
|
|
"atSeconds": 30,
|
|
"action": "set-probe-result",
|
|
"payload": {
|
|
"probe": "fixture-http",
|
|
"success": false,
|
|
"statusCode": 503,
|
|
"latencyMs": 150
|
|
}
|
|
},
|
|
{
|
|
"atSeconds": 240,
|
|
"action": "set-probe-result",
|
|
"payload": {
|
|
"probe": "fixture-http",
|
|
"success": true,
|
|
"statusCode": 200,
|
|
"latencyMs": 90
|
|
}
|
|
}
|
|
],
|
|
"expectedOutcomes": [
|
|
{
|
|
"bySeconds": 150,
|
|
"assertion": "Service and parent application are degraded while the container remains running."
|
|
},
|
|
{
|
|
"bySeconds": 150,
|
|
"assertion": "Service alert fires after pending duration."
|
|
},
|
|
{
|
|
"bySeconds": 330,
|
|
"assertion": "Alert and incident resolve after successful recovery duration."
|
|
}
|
|
]
|
|
}
|