09404db559
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
21 lines
719 B
JavaScript
21 lines
719 B
JavaScript
export const name = "DRC";
|
|
export const url = "https://status.drcedirect.com/PA";
|
|
|
|
// status.drcedirect.com is a JS-rendered Angular app with no accessible API.
|
|
// Synthetic check against the PA INSIGHT portal instead.
|
|
// Note: /PA/portals/pa returns 500 — /PA/ is the correct probe path.
|
|
const PROBE_URL = "https://wbte.drcedirect.com/PA/";
|
|
|
|
export async function checkStatus() {
|
|
const res = await fetch(PROBE_URL, { method: "HEAD" });
|
|
|
|
return {
|
|
name,
|
|
status: res.ok ? "operational" : "degraded",
|
|
message: res.ok
|
|
? `PA INSIGHT portal responding (HTTP ${res.status}).`
|
|
: `Unexpected response from PA INSIGHT portal (HTTP ${res.status}).`,
|
|
lastUpdated: new Date().toISOString(),
|
|
};
|
|
}
|