Files
infrastructure-monitoring-d…/backend/providers/sherpadesk.js
T

20 lines
619 B
JavaScript

export const name = "SherpaDesk";
export const url = "https://nhsd.sherpadesk.com/";
// No usable public status API. Synthetic check against the district portal.
// HEAD returns 404 on this host — use GET.
const PROBE_URL = "https://nhsd.sherpadesk.com/";
export async function checkStatus() {
const res = await fetch(PROBE_URL, { method: "GET" });
return {
name,
status: res.ok ? "operational" : "degraded",
message: res.ok
? `App portal responding (HTTP ${res.status}).`
: `Unexpected response from app portal (HTTP ${res.status}).`,
lastUpdated: new Date().toISOString(),
};
}