feat: incident updates with a status, public or internal
ci / lint (push) Skipped
ci / test (push) Skipped
ci / build (push) Skipped
ci / image (push) Skipped
ci / lint (pull_request) Successful in 6m54s
ci / test (pull_request) Successful in 12m15s
ci / build (pull_request) Successful in 11m0s
ci / image (pull_request) Successful in 4m23s
ci / lint (push) Skipped
ci / test (push) Skipped
ci / build (push) Skipped
ci / image (push) Skipped
ci / lint (pull_request) Successful in 6m54s
ci / test (pull_request) Successful in 12m15s
ci / build (pull_request) Successful in 11m0s
ci / image (pull_request) Successful in 4m23s
Outages open and close with their monitor; now people can say what is going on. An incident gets an optional title and updates, each with a status (investigating, identified, monitoring, resolved) and a Markdown message, shown on status pages or kept as an internal note. The incident shows the latest update's status, resolved once its monitor recovered. The console lists title and status and has a page per incident with its timeline (outage, updates, recovery) and, for incidents.write in the monitor's group, forms to post updates and set the title. Status pages show title, status and public updates. API: GET/PATCH /org/incidents/:id, POST and DELETE /org/incidents/:id/updates; the incident list carries title and status; the organization export includes the updates. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_017GpWAskjmYtZpuQ5JwYTX3
This commit is contained in:
1 parent
6f0cf59406
commit
43a04e99b1
27 files changed
+2753
-908
No files matched your search
@@ -88,6 +88,21 @@ type PageIncident struct {
|
||||
Component string `json:"component"`
|
||||
StartedAt time.Time `json:"started_at"`
|
||||
ResolvedAt *time.Time `json:"resolved_at,omitempty"`
|
||||
// Title names the incident; empty shows the component.
|
||||
Title string `json:"title,omitempty"`
|
||||
// Status is investigating, identified, monitoring or resolved, empty
|
||||
// while nobody said anything.
|
||||
Status string `json:"status,omitempty"`
|
||||
// Updates are the public updates, newest first.
|
||||
Updates []PageIncidentUpdate `json:"updates,omitempty"`
|
||||
}
|
||||
|
||||
// PageIncidentUpdate is what the organization told about an incident.
|
||||
type PageIncidentUpdate struct {
|
||||
Status string `json:"status"`
|
||||
// Message is Markdown.
|
||||
Message string `json:"message"`
|
||||
At time.Time `json:"at"`
|
||||
}
|
||||
|
||||
// PageSnapshot is everything needed to render a status page.
|
||||
|
||||
Reference in new issue
Block a user