Files
Checkmate/client/src/Pages/Infrastructure/Monitors/index.tsx
T

45 lines
1.2 KiB
TypeScript
Raw Normal View History

2026-08-27 14:28:29 -07:00
import { MonitorListPage } from "@/Components/monitors";
import { InfraMonitorsTable } from "@/Pages/Infrastructure/Monitors/Components/MonitorsTable";
2026-01-28 21:34:43 +00:00
2026-08-27 14:28:29 -07:00
import { useMonitorListController } from "@/Hooks/useMonitorListController";
2026-01-28 21:34:43 +00:00
2026-01-28 20:48:02 +00:00
const InfrastructureMonitors = () => {
2026-08-27 14:28:29 -07:00
const c = useMonitorListController({
types: ["hardware"],
checksLimit: 1,
refreshInterval: 5000,
rowsPerPageTable: "infrastructure",
rowsPerPageDefault: 5,
});
2026-01-28 21:34:43 +00:00
return (
2026-08-27 14:28:29 -07:00
<MonitorListPage
headerKey="infrastructure"
2026-01-28 21:34:43 +00:00
page="infrastructure"
actionLink="/infrastructure/create"
2026-08-27 14:28:29 -07:00
controller={c}
bulkActions
showTypeFilter={false}
summaryProps={{ showBreached: true }}
2026-01-28 21:34:43 +00:00
>
<InfraMonitorsTable
2026-08-27 14:28:29 -07:00
monitors={c.monitors || []}
tags={c.tags || []}
refetch={c.refetch}
setSelectedMonitor={c.setSelectedMonitor}
count={c.count || 0}
page={c.page}
setPage={c.setPage}
rowsPerPage={c.rowsPerPage}
sortField={c.sortField}
setSortField={c.setSortField}
sortOrder={c.sortOrder}
setSortOrder={c.setSortOrder}
setRowsPerPage={c.handleSetRowsPerPage}
selectedRows={c.selectedRows}
onSelectionChange={c.setSelectedRows}
2026-01-28 21:34:43 +00:00
/>
2026-08-27 14:28:29 -07:00
</MonitorListPage>
2026-01-28 21:34:43 +00:00
);
2026-01-28 20:48:02 +00:00
};
export default InfrastructureMonitors;