most_recent_snapshot (view)

2 rows

View and edit SQL

id latitude longitude outage estCustAffected cluster cause crewCurrentStatus comments outage_url currentEtor
1582545696:20015843 37.12301 -84.083 20015843 4 0 Working to determine cause   This estimated time of restoration is based on historical averages of the time required to make similar repairs in this area. We will update the estimate as more information becomes available. Please check back for updates.  
1582545696:20015820 38.09285 -84.43679 20015820 4 0 Working to determine cause   We are aware of outages in this area and will provide an estimated time of restoration as soon as possible.  

Advanced export

JSON shape: default, array, newline-delimited

CSV options:

CREATE VIEW most_recent_snapshot as
select, latitude, longitude, outage, estCustAffected, cluster, as cause, as crewCurrentStatus, as comments,
    '' || outage as outage_url, currentEtor
from outage_snapshots
    left join cause on outage_snapshots.cause =
    left join comments on outage_snapshots.comments =
    left join crewCurrentStatus on outage_snapshots.crewCurrentStatus =
    snapshot in (select id from snapshots order by id desc limit 1);
Powered by Datasette · Query took 919.661ms