Public source validation / validate (push) Failing after 3m8s
66 lines
1.5 KiB
JSON
66 lines
1.5 KiB
JSON
{
|
|
"schemaVersion": 1,
|
|
"id": "container-restart-loop",
|
|
"name": "Container restart loop",
|
|
"description": "A container repeatedly restarts while returning to running state.",
|
|
"initialState": {
|
|
"container": {
|
|
"id": "fixture-plex",
|
|
"name": "Plex",
|
|
"status": "running",
|
|
"restartCount": 0
|
|
}
|
|
},
|
|
"timeline": [
|
|
{
|
|
"atSeconds": 10,
|
|
"action": "emit-event",
|
|
"payload": {
|
|
"eventType": "container.restart",
|
|
"entity": "fixture-plex",
|
|
"exitCode": 137
|
|
}
|
|
},
|
|
{
|
|
"atSeconds": 120,
|
|
"action": "emit-event",
|
|
"payload": {
|
|
"eventType": "container.restart",
|
|
"entity": "fixture-plex",
|
|
"exitCode": 137
|
|
}
|
|
},
|
|
{
|
|
"atSeconds": 240,
|
|
"action": "emit-event",
|
|
"payload": {
|
|
"eventType": "container.restart",
|
|
"entity": "fixture-plex",
|
|
"exitCode": 137
|
|
}
|
|
},
|
|
{
|
|
"atSeconds": 360,
|
|
"action": "set-entity-status",
|
|
"payload": {
|
|
"entity": "fixture-plex",
|
|
"status": "operational"
|
|
}
|
|
}
|
|
],
|
|
"expectedOutcomes": [
|
|
{
|
|
"bySeconds": 300,
|
|
"assertion": "Container is degraded due to instability even when current runtime state is running."
|
|
},
|
|
{
|
|
"bySeconds": 330,
|
|
"assertion": "Restart-loop alert is firing and grouped under the application."
|
|
},
|
|
{
|
|
"bySeconds": 1500,
|
|
"assertion": "Alert resolves only after the configured stable recovery window."
|
|
}
|
|
]
|
|
}
|