manually create incidents for now
This commit is contained in:
parent
a216145ed2
commit
6f2705f736
|
@ -11,7 +11,7 @@ import "../App.css";
|
||||||
export default function StatusPage() {
|
export default function StatusPage() {
|
||||||
|
|
||||||
const [uptime, setUptime] = useState<UptimeResponse>({datacenters: [], services: [], lastUpdated: ""});
|
const [uptime, setUptime] = useState<UptimeResponse>({datacenters: [], services: [], lastUpdated: ""});
|
||||||
const [incidents, setIncidents] = useState<Incident[]>([]);
|
//const [incidents, setIncidents] = useState<Incident[]>([]);
|
||||||
|
|
||||||
const fetchUptime = async () => {
|
const fetchUptime = async () => {
|
||||||
let resp: UptimeResponse = await getUptime();
|
let resp: UptimeResponse = await getUptime();
|
||||||
|
@ -19,8 +19,8 @@ export default function StatusPage() {
|
||||||
}
|
}
|
||||||
|
|
||||||
const fetchIncidents = async () => {
|
const fetchIncidents = async () => {
|
||||||
let resp: Incident[] = await getIncidents();
|
//let resp: Incident[] = await getIncidents();
|
||||||
setIncidents(resp);
|
//setIncidents(resp);
|
||||||
}
|
}
|
||||||
|
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
|
@ -77,16 +77,14 @@ export default function StatusPage() {
|
||||||
|
|
||||||
<div>
|
<div>
|
||||||
<h3>Service Alerts</h3>
|
<h3>Service Alerts</h3>
|
||||||
{incidents !== null && incidents.map((e) => {
|
|
||||||
return (
|
<IncidentCard incident={{
|
||||||
<IncidentCard incident={e}/>
|
id: 0,
|
||||||
);
|
title: "NWS Complete Service Outage",
|
||||||
})}
|
description: "Due to issues with our ISP at our Texas datacenter, NWS Texas was taken offline. Due to unavalibility of staff, NWS was unable to divert traffic to other datacenters. This resulted in an outage lasting 5 days. Currently, the NWS API is partially down, however hosted NWS services are back up. An incident report will be written up within a week.",
|
||||||
{(incidents !== null && incidents.length == 0) &&
|
severity: 2
|
||||||
<div className={`row text-center`} style={{width: '75vw'}}>
|
}}/>
|
||||||
<h5 className={"col-12"}>No service alerts.</h5>
|
|
||||||
</div>
|
|
||||||
}
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
|
|
Loading…
Reference in a new issue