Merge pull request #851 from bluewave-labs/feat/monitor-sort-and-filter

Feat/be/monitor sort and filter, #498, #704
This commit is contained in:
Alexander Holliday authored and GitHub committed 2024-09-18 16:23:35 -07:00
commit e78db11c8a
6 files changed
+116 -65

No files matched your search

@@ -142,17 +142,20 @@ const MonitorTable = ({ isAdmin }) => {
try {
const { authToken } = authState;
const user = jwtDecode(authToken);
const res = await networkService.getMonitorsByTeamId(
const res = await networkService.getMonitorsByTeamId({
authToken,
user.teamId,
25,
["http", "ping"],
null,
"desc",
true,
page,
rowsPerPage
);
teamId: user.teamId,
limit: 25,
types: ["http", "ping"],
status: null,
checkOrder: "desc",
normalize: true,
page: page,
rowsPerPage: rowsPerPage,
filter: null,
field: null,
order: null,
});
setMonitors(res?.data?.data?.monitors ?? []);
setMonitorCount(res?.data?.data?.monitorCount ?? 0);
} catch (error) {