Add port type to uptime queries

This commit is contained in:
Alex Holliday
2024-12-27 11:17:25 -08:00
parent ab27011b91
commit bc748c57e5
3 changed files with 3 additions and 2 deletions

View File

@@ -86,7 +86,7 @@ export const getUptimeMonitorsByTeamId = createAsyncThunk(
const res = await networkService.getMonitorsAndSummaryByTeamId({
authToken: token,
teamId: user.teamId,
types: ["http", "ping", "docker"],
types: ["http", "ping", "docker", "port"],
});
return res.data;
} catch (error) {

View File

@@ -56,6 +56,7 @@ const DetailsPage = () => {
numToDisplay: 50,
normalize: true,
});
console.log(res?.data?.data);
setMonitor(res?.data?.data ?? {});
} catch (error) {
logger.error(error);

View File

@@ -74,7 +74,7 @@ const MonitorTable = ({ isAdmin, filter, setIsSearching, isSearching, handlePaus
authToken,
teamId: user.teamId,
limit: 25,
types: ["http", "ping", "docker"],
types: ["http", "ping", "docker", "port"],
status: null,
checkOrder: "desc",
normalize: true,