mirror of
https://github.com/louislam/uptime-kuma.git
synced 2025-03-04 16:35:57 +00:00
Add Slow to Dashboard Quick Stats
This commit is contained in:
parent
a453e3c273
commit
6c0aaaab7e
2 changed files with 9 additions and 0 deletions
|
@ -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++;
|
||||
}
|
||||
|
|
|
@ -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>
|
||||
|
|
Loading…
Add table
Reference in a new issue