[status page] create incident

This commit is contained in:
LouisLam
2021-09-16 22:48:28 +08:00
parent 8230cfe13f
commit 2955abb5d9
13 changed files with 273 additions and 60 deletions

View File

@@ -106,7 +106,11 @@ export default {
this.heartbeatList[data.monitorID] = [];
}
this.heartbeatList[data.monitorID].push(data)
this.heartbeatList[data.monitorID].push(data);
if (this.heartbeatList[data.monitorID].length >= 150) {
this.heartbeatList[data.monitorID].shift();
}
// Add to important list if it is important
// Also toast