Fix missing model.Aggregate entry, fix status queries and refresh

This commit is contained in:
Christoph Kluge
2025-10-14 18:43:00 +02:00
parent 0a3a664653
commit 6a43dfb0d7
4 changed files with 31 additions and 24 deletions

View File

@@ -185,6 +185,7 @@
paging: { itemsPerPage: -1, page: 1 }, // Get all: -1
sorting: { field: "startTime", type: "col", order: "DESC" }
},
requestPolicy: "network-only"
}));
/* Effects */
@@ -233,6 +234,10 @@
}
});
$inspect('From', from)
$inspect('To', to)
$inspect('Query', statusQuery)
/* Const Functions */
const sumUp = (data, subcluster, metric) =>
data.reduce(
@@ -363,6 +368,7 @@
<Refresher
initially={120}
onRefresh={() => {
console.log('Trigger Refresh StatusTab')
from = new Date(Date.now() - 5 * 60 * 1000);
to = new Date(Date.now());
}}