51eb3bf7c8
- Wire up 26 vendor providers: Atlassian Statuspage API, Status.io, Instatus, AWS RSS feeds, Apple/Google JSON feeds, M365 Graph API, and synthetic checks - Add 11 new providers: AWS, Cloudflare, SmartPass, School Dismissal Manager, SherpaDesk, Classkick, ClassDojo, Savvas, Study Island, Promethean, RAZ-Kids - Rename Local Infrastructure → Internet (TCP check to 8.8.8.8:53) - Add WAN throughput graph section: dual-link canvas graphs (Crown Castle + Comcast) polling FortiGate REST API every 30s with 30-min rolling history - Add FortiGate health card: uptime, CPU %, memory % from FortiOS API - Add /api/throughput and /api/fortigate-health endpoints - Add README with setup instructions Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
52 lines
1.3 KiB
JavaScript
52 lines
1.3 KiB
JavaScript
export const name = "Study Island";
|
|
export const url = "https://status.edmentum.com/";
|
|
|
|
// Study Island is a component on Edmentum's parent status page.
|
|
const STATUS_URL = "https://status.edmentum.com/api/v2/summary.json";
|
|
|
|
const STATUS_MAP = {
|
|
operational: "operational",
|
|
degraded_performance: "degraded",
|
|
partial_outage: "degraded",
|
|
major_outage: "outage",
|
|
};
|
|
|
|
export async function checkStatus() {
|
|
const res = await fetch(STATUS_URL);
|
|
|
|
if (!res.ok) {
|
|
throw new Error(`Edmentum status request failed (${res.status})`);
|
|
}
|
|
|
|
const data = await res.json();
|
|
|
|
const component = (data.components ?? []).find(
|
|
(c) => c.name === "Study Island"
|
|
);
|
|
|
|
if (!component) {
|
|
throw new Error("Study Island component not found in Edmentum status feed.");
|
|
}
|
|
|
|
const status = STATUS_MAP[component.status] ?? "unknown";
|
|
|
|
const incidents = data.incidents ?? [];
|
|
const activeIncidents = incidents.filter((i) => i.status !== "resolved");
|
|
|
|
let message;
|
|
if (activeIncidents.length > 0) {
|
|
message = activeIncidents.map((i) => i.name).join("; ");
|
|
} else {
|
|
message = component.status === "operational"
|
|
? "All Systems Operational"
|
|
: component.status.replace(/_/g, " ");
|
|
}
|
|
|
|
return {
|
|
name,
|
|
status,
|
|
message,
|
|
lastUpdated: new Date().toISOString(),
|
|
};
|
|
}
|