Skip to content

Commit cc481f6

Browse files
author
Hans Kristian Flaatten
committed
Show checks with recent outages as unstable
1 parent 814449e commit cc481f6

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

assets/js/script.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,12 @@ $(document).ready(function() {
1515
return tag.name === 'service' ? 'service' : cat;
1616
}, 'app');
1717

18+
// check time since last outage
19+
if (check.status === 'up' && Date.now() - (check.lasterrortime * 1000) <= 86400000) {
20+
check.class = 'degraded performance';
21+
check.text = 'ustabil';
22+
}
23+
1824
return check;
1925
});
2026

0 commit comments

Comments
 (0)