feat(hub): expose occurred_at on recent-errors for CRM deploy verification
Add ISO-8601 occurred_at to each row returned by GET /api/error-monitoring/recent-errors so operators can script post-deploy stability checks (BIT-1048). Extend verify_pmx_bet_due_time_deploy.sh with a hub mode that queries open CRM incidents matching ERRSIG 90a47beec0d7 and fails if the latest occurrence is within HUB_DUE_TIME_STABILITY_SEC (default 7200). Skips with exit 0 when no resolve key is present. Document the field in HTTP_CONTRACTS, ERROR_MONITORING_PUBLIC_API, and RUNBOOK_REPORTER_CRM_TASKS_DUE_TIME §6.2.2. Paperclip-Agent: 5d084b36-f38f-42a5-a92a-520005afda4f Paperclip-Issue: BIT-1048 Paperclip-Run: 5138810f-9498-49a1-81eb-291fdeba8abc
This commit is contained in:
1 parent
50282ab4dd
commit
410cd7e0aa
5 files changed
+100
-3
No files matched your search
@@ -64,12 +64,15 @@ Alias: `GET /v1/paperclip/recent-errors` (same handler).
|
||||
"severity": "high",
|
||||
"unique_id": "12345",
|
||||
"project_slug": "crm",
|
||||
"environment": "production"
|
||||
"environment": "production",
|
||||
"occurred_at": "2026-04-05T12:34:56.789Z"
|
||||
}
|
||||
]
|
||||
}
|
||||
```
|
||||
|
||||
**`occurred_at`:** ISO-8601 time of the latest occurrence represented in the row (same as `unique_id` when that id is an occurrence id). Exposed for ops automation (e.g. post-deploy “no new events in *N* hours” checks).
|
||||
|
||||
**`stack_trace`:** The hub returns a **non-empty** string for every row. Ingest stores a synthesized stack when the reporter omits one; for legacy occurrences whose column is still null/blank, `recent-errors` applies the same synthesis at read time using `message` and `context_json` (BIT-1008).
|
||||
|
||||
```bash
|
||||
|
||||
Reference in new issue
Block a user