most_recent_snapshot (view)
2 rows
This data as json, CSV (advanced)
id | latitude | longitude | outage | estCustAffected | cluster | cause | crewCurrentStatus | comments | outage_url | currentEtor |
---|---|---|---|---|---|---|---|---|---|---|
1685383537:23084882 | 37.74122 | -84.77102 | 23084882 | 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. | https://lgeku-outages.herokuapp.com/outages/outages/23084882 | ||
1685383537:23084861 | 37.86428 | -84.58488 | 23084861 | 43 | 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. | https://lgeku-outages.herokuapp.com/outages/outages/23084861 |
Advanced export
JSON shape: default, array, newline-delimited
CREATE VIEW most_recent_snapshot as select outage_snapshots.id, latitude, longitude, outage, estCustAffected, cluster, cause.name as cause, crewCurrentStatus.name as crewCurrentStatus, comments.name as comments, 'https://lgeku-outages.herokuapp.com/outages/outages/' || outage as outage_url, currentEtor from outage_snapshots left join cause on outage_snapshots.cause = cause.id left join comments on outage_snapshots.comments = comments.id left join crewCurrentStatus on outage_snapshots.crewCurrentStatus = crewCurrentStatus.id where snapshot in (select id from snapshots order by id desc limit 1);