Add Slow to Dashboard Quick Stats

This commit is contained in:
Stephen Papierski 2023-11-14 13:16:43 -07:00
parent a453e3c273
commit 6c0aaaab7e
No known key found for this signature in database
2 changed files with 9 additions and 0 deletions

View file

@ -776,6 +776,7 @@ export default {
active: 0,
up: 0,
down: 0,
slow: 0,
maintenance: 0,
pending: 0,
unknown: 0,
@ -801,6 +802,10 @@ export default {
} else {
result.unknown++;
}
if (beat.pingStatus === SLOW) {
results.slow++;
}
} else {
result.unknown++;
}

View file

@ -15,6 +15,10 @@
<h3>{{ $t("Down") }}</h3>
<span class="num text-danger">{{ $root.stats.down }}</span>
</div>
<div class="col">
<h3>{{ $t("Slow") }}</h3>
<span class="num text-warning">{{ $root.stats.slow }}</span>
</div>
<div class="col">
<h3>{{ $t("Maintenance") }}</h3>
<span class="num text-maintenance">{{ $root.stats.maintenance }}</span>