diagnostics
This commit is contained in:
1 parent
597732e109
commit
8470631162
6 files changed
+206
-97
No files matched your search
@@ -1,5 +1,6 @@
|
||||
import Stack from "@mui/material/Stack";
|
||||
import { Stats } from "@/Pages/Logs/Stats";
|
||||
import { StatGauges } from "@/Pages/Logs/StatGauges";
|
||||
|
||||
import { useTheme } from "@mui/material";
|
||||
import { useGet } from "@/Hooks/UseApi";
|
||||
@@ -9,14 +10,15 @@ export const TabDiagnostics = () => {
|
||||
const theme = useTheme();
|
||||
const {
|
||||
data: diagnostics,
|
||||
isLoading,
|
||||
error,
|
||||
refetch,
|
||||
} = useGet<Diagnostics>("/diagnostic/system");
|
||||
isLoading: _isLoading,
|
||||
error: _error,
|
||||
refetch: _refetch,
|
||||
} = useGet<Diagnostics>("/diagnostic/system", {}, { refreshInterval: 5000 });
|
||||
|
||||
return (
|
||||
<Stack gap={theme.spacing(8)}>
|
||||
<Stats diagnostics={diagnostics} />
|
||||
<StatGauges diagnostics={diagnostics} />
|
||||
</Stack>
|
||||
);
|
||||
};
|
||||
Reference in new issue
Block a user