feat: host heartbeat status and dashboard metrics (2.2)

Track agent.heartbeat and report.daily.ssh per host; show online/stale
on Hosts UI; dashboard counters and SAC_HEARTBEAT_STALE_MINUTES config.
This commit is contained in:
PTah
2026-05-27 13:36:17 +10:00
parent 9ba3c4b63b
commit 04301ab359
14 changed files with 246 additions and 4 deletions
+8 -1
View File
@@ -57,8 +57,11 @@
<script setup lang="ts">
import { onMounted, ref } from "vue";
import { useRoute } from "vue-router";
import { apiFetch, type EventListResponse } from "../api";
const route = useRoute();
const data = ref<EventListResponse | null>(null);
const loading = ref(false);
const error = ref("");
@@ -92,5 +95,9 @@ async function load(p: number) {
}
}
onMounted(() => load(1));
onMounted(() => {
const t = route.query.type;
if (typeof t === "string" && t) typeFilter.value = t;
load(1);
});
</script>