feat(studio): endpoint to retrieve incident status (#41355)

Incident status banners/alerts should be automatically determined from
the status page, rather than being manually configured.

Adds a new endpoint, /api/incident-status, to return information about
active incidents. This information is fetched from the StatusPage API.
The endpoint is cached to reduce number of third-party API requests.

Co-authored-by: Ali Waseem <waseema393@gmail.com>
This commit is contained in:
CharisandAli Waseem authored and GitHub committed 2025-12-15 22:42:37 +00:00
1 parent 23064c0b5b
commit 657ca2d97c
4 files changed
+164 -2

No files matched your search

+10
View File
@@ -119,3 +119,13 @@ export function commaSeparatedStringIntoArray(value: string): string[] {
.map((v) => v.trim())
.filter(Boolean)
}
export class InternalServerError extends Error {
constructor(
message: string,
public details?: Record<string, unknown>
) {
super(message)
this.name = 'InternalServerError'
}
}