Merge pull request #806 from bluewave-labs/feat/refactor-monitor-redux
Feat/refactor monitor redux
This commit is contained in:
11 files changed
+169
-53
No files matched your search
@@ -3,7 +3,7 @@ import { jwtDecode } from "jwt-decode";
|
|||||||
import { networkService } from "../../main";
|
import { networkService } from "../../main";
|
||||||
const initialState = {
|
const initialState = {
|
||||||
isLoading: false,
|
isLoading: false,
|
||||||
monitors: [],
|
monitorsSummary: [],
|
||||||
success: null,
|
success: null,
|
||||||
msg: null,
|
msg: null,
|
||||||
};
|
};
|
||||||
@@ -53,14 +53,10 @@ export const getPageSpeedByTeamId = createAsyncThunk(
|
|||||||
async (token, thunkApi) => {
|
async (token, thunkApi) => {
|
||||||
const user = jwtDecode(token);
|
const user = jwtDecode(token);
|
||||||
try {
|
try {
|
||||||
const res = await networkService.getMonitorsByTeamId(
|
const res = await networkService.getMonitorsAndSummaryByTeamId(
|
||||||
token,
|
token,
|
||||||
user.teamId,
|
user.teamId,
|
||||||
25,
|
["pagespeed"]
|
||||||
["pagespeed"],
|
|
||||||
null,
|
|
||||||
"desc",
|
|
||||||
false
|
|
||||||
);
|
);
|
||||||
|
|
||||||
return res.data;
|
return res.data;
|
||||||
@@ -155,7 +151,7 @@ const pageSpeedMonitorSlice = createSlice({
|
|||||||
reducers: {
|
reducers: {
|
||||||
clearMonitorState: (state) => {
|
clearMonitorState: (state) => {
|
||||||
state.isLoading = false;
|
state.isLoading = false;
|
||||||
state.monitors = [];
|
state.monitorsSummary = [];
|
||||||
state.success = null;
|
state.success = null;
|
||||||
state.msg = null;
|
state.msg = null;
|
||||||
},
|
},
|
||||||
@@ -172,7 +168,7 @@ const pageSpeedMonitorSlice = createSlice({
|
|||||||
.addCase(getPageSpeedByTeamId.fulfilled, (state, action) => {
|
.addCase(getPageSpeedByTeamId.fulfilled, (state, action) => {
|
||||||
state.isLoading = false;
|
state.isLoading = false;
|
||||||
state.success = action.payload.msg;
|
state.success = action.payload.msg;
|
||||||
state.monitors = action.payload.data;
|
state.monitorsSummary = action.payload.data;
|
||||||
})
|
})
|
||||||
.addCase(getPageSpeedByTeamId.rejected, (state, action) => {
|
.addCase(getPageSpeedByTeamId.rejected, (state, action) => {
|
||||||
state.isLoading = false;
|
state.isLoading = false;
|
||||||
|
|||||||
@@ -3,7 +3,7 @@ import { jwtDecode } from "jwt-decode";
|
|||||||
import { networkService } from "../../main";
|
import { networkService } from "../../main";
|
||||||
const initialState = {
|
const initialState = {
|
||||||
isLoading: false,
|
isLoading: false,
|
||||||
monitors: [],
|
monitorsSummary: [],
|
||||||
success: null,
|
success: null,
|
||||||
msg: null,
|
msg: null,
|
||||||
};
|
};
|
||||||
@@ -53,14 +53,10 @@ export const getUptimeMonitorsByTeamId = createAsyncThunk(
|
|||||||
async (token, thunkApi) => {
|
async (token, thunkApi) => {
|
||||||
const user = jwtDecode(token);
|
const user = jwtDecode(token);
|
||||||
try {
|
try {
|
||||||
const res = await networkService.getMonitorsByTeamId(
|
const res = await networkService.getMonitorsAndSummaryByTeamId(
|
||||||
token,
|
token,
|
||||||
user.teamId,
|
user.teamId,
|
||||||
25,
|
["http", "ping"]
|
||||||
["http", "ping"],
|
|
||||||
null,
|
|
||||||
"desc",
|
|
||||||
true
|
|
||||||
);
|
);
|
||||||
return res.data;
|
return res.data;
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
@@ -175,7 +171,7 @@ const uptimeMonitorsSlice = createSlice({
|
|||||||
reducers: {
|
reducers: {
|
||||||
clearUptimeMonitorState: (state) => {
|
clearUptimeMonitorState: (state) => {
|
||||||
state.isLoading = false;
|
state.isLoading = false;
|
||||||
state.monitors = [];
|
state.monitorsSummary = [];
|
||||||
state.success = null;
|
state.success = null;
|
||||||
state.msg = null;
|
state.msg = null;
|
||||||
},
|
},
|
||||||
@@ -192,7 +188,7 @@ const uptimeMonitorsSlice = createSlice({
|
|||||||
.addCase(getUptimeMonitorsByTeamId.fulfilled, (state, action) => {
|
.addCase(getUptimeMonitorsByTeamId.fulfilled, (state, action) => {
|
||||||
state.isLoading = false;
|
state.isLoading = false;
|
||||||
state.success = action.payload.msg;
|
state.success = action.payload.msg;
|
||||||
state.monitors = action.payload.data;
|
state.monitorsSummary = action.payload.data;
|
||||||
})
|
})
|
||||||
.addCase(getUptimeMonitorsByTeamId.rejected, (state, action) => {
|
.addCase(getUptimeMonitorsByTeamId.rejected, (state, action) => {
|
||||||
state.isLoading = false;
|
state.isLoading = false;
|
||||||
|
|||||||
@@ -23,23 +23,9 @@ const Monitors = ({ isAdmin }) => {
|
|||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
dispatch(getUptimeMonitorsByTeamId(authState.authToken));
|
dispatch(getUptimeMonitorsByTeamId(authState.authToken));
|
||||||
}, [authState.authToken, dispatch]);
|
}, [authState.authToken, dispatch]);
|
||||||
|
let loading =
|
||||||
const monitorStats = monitorState?.monitors?.monitors?.reduce(
|
monitorState?.isLoading &&
|
||||||
(acc, monitor) => {
|
monitorState?.monitorsSummary?.monitors?.length === 0;
|
||||||
if (monitor.isActive === false) {
|
|
||||||
acc["paused"] += 1;
|
|
||||||
} else if (monitor.status === true) {
|
|
||||||
acc["up"] += 1;
|
|
||||||
} else {
|
|
||||||
acc["down"] += 1;
|
|
||||||
}
|
|
||||||
return acc;
|
|
||||||
},
|
|
||||||
{ paused: 0, up: 0, down: 0 }
|
|
||||||
);
|
|
||||||
|
|
||||||
let loading = monitorState.isLoading && monitorState.monitors.length === 0;
|
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<Stack className="monitors" gap={theme.spacing(8)}>
|
<Stack className="monitors" gap={theme.spacing(8)}>
|
||||||
{loading ? (
|
{loading ? (
|
||||||
@@ -55,7 +41,7 @@ const Monitors = ({ isAdmin }) => {
|
|||||||
mt={theme.spacing(5)}
|
mt={theme.spacing(5)}
|
||||||
>
|
>
|
||||||
<Greeting type="uptime" />
|
<Greeting type="uptime" />
|
||||||
{monitorState.monitors?.length !== 0 && (
|
{monitorState?.monitorsSummary?.monitors?.length !== 0 && (
|
||||||
<Button
|
<Button
|
||||||
variant="contained"
|
variant="contained"
|
||||||
color="primary"
|
color="primary"
|
||||||
@@ -69,20 +55,33 @@ const Monitors = ({ isAdmin }) => {
|
|||||||
)}
|
)}
|
||||||
</Stack>
|
</Stack>
|
||||||
</Box>
|
</Box>
|
||||||
{isAdmin && monitorState.monitors?.length === 0 && (
|
{isAdmin && monitorState?.monitorsSummary?.monitors?.length === 0 && (
|
||||||
<Fallback isAdmin={isAdmin} />
|
<Fallback isAdmin={isAdmin} />
|
||||||
)}
|
)}
|
||||||
|
|
||||||
{monitorState.monitors?.length !== 0 && (
|
{monitorState?.monitorsSummary?.monitors?.length !== 0 && (
|
||||||
<>
|
<>
|
||||||
<Stack
|
<Stack
|
||||||
gap={theme.spacing(8)}
|
gap={theme.spacing(8)}
|
||||||
direction="row"
|
direction="row"
|
||||||
justifyContent="space-between"
|
justifyContent="space-between"
|
||||||
>
|
>
|
||||||
<StatusBox title="up" value={monitorStats.up} />
|
<StatusBox
|
||||||
<StatusBox title="down" value={monitorStats.down} />
|
title="up"
|
||||||
<StatusBox title="paused" value={monitorStats.paused} />
|
value={monitorState?.monitorsSummary?.monitorCounts?.up ?? 0}
|
||||||
|
/>
|
||||||
|
<StatusBox
|
||||||
|
title="down"
|
||||||
|
value={
|
||||||
|
monitorState?.monitorsSummary?.monitorCounts?.down ?? 0
|
||||||
|
}
|
||||||
|
/>
|
||||||
|
<StatusBox
|
||||||
|
title="paused"
|
||||||
|
value={
|
||||||
|
monitorState?.monitorsSummary?.monitorCounts?.paused ?? 0
|
||||||
|
}
|
||||||
|
/>
|
||||||
</Stack>
|
</Stack>
|
||||||
<Box
|
<Box
|
||||||
flex={1}
|
flex={1}
|
||||||
@@ -111,7 +110,8 @@ const Monitors = ({ isAdmin }) => {
|
|||||||
borderColor={theme.palette.border.light}
|
borderColor={theme.palette.border.light}
|
||||||
backgroundColor={theme.palette.background.accent}
|
backgroundColor={theme.palette.background.accent}
|
||||||
>
|
>
|
||||||
{monitorState.monitors.monitors.length}
|
{monitorState?.monitorsSummary.monitors?.monitors?.length ||
|
||||||
|
0}
|
||||||
</Box>
|
</Box>
|
||||||
{/* TODO - add search bar */}
|
{/* TODO - add search bar */}
|
||||||
</Stack>
|
</Stack>
|
||||||
|
|||||||
@@ -217,7 +217,6 @@ const PageSpeedDetails = () => {
|
|||||||
null,
|
null,
|
||||||
null
|
null
|
||||||
);
|
);
|
||||||
console.log(res.data.data);
|
|
||||||
setMonitor(res?.data?.data ?? {});
|
setMonitor(res?.data?.data ?? {});
|
||||||
setAudits(res?.data?.data?.checks?.[0]?.audits ?? []);
|
setAudits(res?.data?.data?.checks?.[0]?.audits ?? []);
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
|
|||||||
@@ -18,7 +18,7 @@ const PageSpeed = ({ isAdmin }) => {
|
|||||||
const navigate = useNavigate();
|
const navigate = useNavigate();
|
||||||
|
|
||||||
const { authToken } = useSelector((state) => state.auth);
|
const { authToken } = useSelector((state) => state.auth);
|
||||||
const { monitors, isLoading } = useSelector(
|
const { monitorsSummary, isLoading } = useSelector(
|
||||||
(state) => state.pageSpeedMonitors
|
(state) => state.pageSpeedMonitors
|
||||||
);
|
);
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
@@ -27,7 +27,7 @@ const PageSpeed = ({ isAdmin }) => {
|
|||||||
|
|
||||||
// will show skeletons only on initial load
|
// will show skeletons only on initial load
|
||||||
// since monitor state is being added to redux persist, there's no reason to display skeletons on every render
|
// since monitor state is being added to redux persist, there's no reason to display skeletons on every render
|
||||||
let isActuallyLoading = isLoading && monitors?.monitors.length === 0;
|
let isActuallyLoading = isLoading && monitorsSummary?.monitors?.length === 0;
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<Box
|
<Box
|
||||||
@@ -46,7 +46,7 @@ const PageSpeed = ({ isAdmin }) => {
|
|||||||
>
|
>
|
||||||
{isActuallyLoading ? (
|
{isActuallyLoading ? (
|
||||||
<SkeletonLayout />
|
<SkeletonLayout />
|
||||||
) : monitors?.monitors?.length !== 0 ? (
|
) : monitorsSummary?.monitors?.length !== 0 ? (
|
||||||
<Box
|
<Box
|
||||||
sx={{
|
sx={{
|
||||||
"& p": {
|
"& p": {
|
||||||
@@ -73,8 +73,8 @@ const PageSpeed = ({ isAdmin }) => {
|
|||||||
</Stack>
|
</Stack>
|
||||||
</Box>
|
</Box>
|
||||||
<Grid container spacing={theme.spacing(12)}>
|
<Grid container spacing={theme.spacing(12)}>
|
||||||
{monitors?.monitors?.map((monitor) => (
|
{monitorsSummary?.monitors?.map((monitor) => (
|
||||||
<Card data={monitor} key={`monitor-${monitor._id}`} />
|
<Card data={monitor} key={monitor._id} />
|
||||||
))}
|
))}
|
||||||
</Grid>
|
</Grid>
|
||||||
</Box>
|
</Box>
|
||||||
|
|||||||
@@ -58,9 +58,28 @@ class NetworkService {
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
async getMonitorsAndSummaryByTeamId(authToken, teamId, types) {
|
||||||
|
const params = new URLSearchParams();
|
||||||
|
|
||||||
|
if (types) {
|
||||||
|
types.forEach((type) => {
|
||||||
|
params.append("type", type);
|
||||||
|
});
|
||||||
|
}
|
||||||
|
return this.axiosInstance.get(
|
||||||
|
`/monitors/team/summary/${teamId}?${params.toString()}`,
|
||||||
|
{
|
||||||
|
headers: {
|
||||||
|
Authorization: `Bearer ${authToken}`,
|
||||||
|
"Content-Type": "application/json",
|
||||||
|
},
|
||||||
|
}
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* ************************************
|
* ************************************
|
||||||
* Get all uptime monitors for a user
|
* Get all uptime monitors for a Team
|
||||||
* ************************************
|
* ************************************
|
||||||
*
|
*
|
||||||
* @async
|
* @async
|
||||||
|
|||||||
@@ -4,6 +4,8 @@ const {
|
|||||||
getMonitorsByTeamIdValidation,
|
getMonitorsByTeamIdValidation,
|
||||||
createMonitorBodyValidation,
|
createMonitorBodyValidation,
|
||||||
editMonitorBodyValidation,
|
editMonitorBodyValidation,
|
||||||
|
getMonitorsAndSummaryByTeamIdParamValidation,
|
||||||
|
getMonitorsAndSummaryByTeamIdQueryValidation,
|
||||||
getMonitorsByTeamIdQueryValidation,
|
getMonitorsByTeamIdQueryValidation,
|
||||||
pauseMonitorParamValidation,
|
pauseMonitorParamValidation,
|
||||||
getMonitorStatsByIdParamValidation,
|
getMonitorStatsByIdParamValidation,
|
||||||
@@ -16,7 +18,6 @@ const {
|
|||||||
const sslChecker = require("ssl-checker");
|
const sslChecker = require("ssl-checker");
|
||||||
const SERVICE_NAME = "monitorController";
|
const SERVICE_NAME = "monitorController";
|
||||||
const { errorMessages, successMessages } = require("../utils/messages");
|
const { errorMessages, successMessages } = require("../utils/messages");
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Returns all monitors
|
* Returns all monitors
|
||||||
* @async
|
* @async
|
||||||
@@ -186,7 +187,54 @@ const getMonitorById = async (req, res, next) => {
|
|||||||
};
|
};
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Returns all monitors belong to User with UserID
|
* Returns all monitors and a sumamry for a team with TeamID
|
||||||
|
* @async
|
||||||
|
* @param {Express.Request} req
|
||||||
|
* @param {Express.Response} res
|
||||||
|
* @returns {Promise<Express.Response>}
|
||||||
|
* @throws {Error}
|
||||||
|
*/
|
||||||
|
|
||||||
|
const getMonitorsAndSummaryByTeamId = async (req, res, next) => {
|
||||||
|
try {
|
||||||
|
await getMonitorsAndSummaryByTeamIdParamValidation.validateAsync(
|
||||||
|
req.params
|
||||||
|
);
|
||||||
|
await getMonitorsAndSummaryByTeamIdQueryValidation.validateAsync(req.query);
|
||||||
|
//validation
|
||||||
|
} catch (error) {
|
||||||
|
error.status = 422;
|
||||||
|
error.service = SERVICE_NAME;
|
||||||
|
error.method === undefined &&
|
||||||
|
error.method === "getMonitorsAndSummaryByTeamId";
|
||||||
|
error.message =
|
||||||
|
error.details?.[0]?.message || error.message || "Validation Error";
|
||||||
|
next(error);
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
try {
|
||||||
|
const { teamId } = req.params;
|
||||||
|
const { type } = req.query;
|
||||||
|
const monitorsSummary = await req.db.getMonitorsAndSummaryByTeamId(
|
||||||
|
teamId,
|
||||||
|
type
|
||||||
|
);
|
||||||
|
return res.status(200).json({
|
||||||
|
success: true,
|
||||||
|
msg: successMessages.MONITOR_GET_BY_USER_ID(teamId),
|
||||||
|
data: monitorsSummary,
|
||||||
|
});
|
||||||
|
} catch (error) {
|
||||||
|
error.service = SERVICE_NAME;
|
||||||
|
error.method === undefined &&
|
||||||
|
error.method === "getMonitorsAndSummaryByTeamId";
|
||||||
|
next(error);
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Returns all monitors belong to team with TeamID
|
||||||
* @async
|
* @async
|
||||||
* @param {Express.Request} req
|
* @param {Express.Request} req
|
||||||
* @param {Express.Response} res
|
* @param {Express.Response} res
|
||||||
@@ -424,6 +472,7 @@ module.exports = {
|
|||||||
getMonitorStatsById,
|
getMonitorStatsById,
|
||||||
getMonitorCertificate,
|
getMonitorCertificate,
|
||||||
getMonitorById,
|
getMonitorById,
|
||||||
|
getMonitorsAndSummaryByTeamId,
|
||||||
getMonitorsByTeamId,
|
getMonitorsByTeamId,
|
||||||
createMonitor,
|
createMonitor,
|
||||||
deleteMonitor,
|
deleteMonitor,
|
||||||
|
|||||||
@@ -64,10 +64,9 @@ const {
|
|||||||
|
|
||||||
const {
|
const {
|
||||||
getAllMonitors,
|
getAllMonitors,
|
||||||
getMonitorAggregateStats,
|
|
||||||
testMethod,
|
|
||||||
getMonitorStatsById,
|
getMonitorStatsById,
|
||||||
getMonitorById,
|
getMonitorById,
|
||||||
|
getMonitorsAndSummaryByTeamId,
|
||||||
getMonitorsByTeamId,
|
getMonitorsByTeamId,
|
||||||
createMonitor,
|
createMonitor,
|
||||||
deleteMonitor,
|
deleteMonitor,
|
||||||
@@ -148,6 +147,7 @@ module.exports = {
|
|||||||
getAllMonitors,
|
getAllMonitors,
|
||||||
getMonitorStatsById,
|
getMonitorStatsById,
|
||||||
getMonitorById,
|
getMonitorById,
|
||||||
|
getMonitorsAndSummaryByTeamId,
|
||||||
getMonitorsByTeamId,
|
getMonitorsByTeamId,
|
||||||
createMonitor,
|
createMonitor,
|
||||||
deleteMonitor,
|
deleteMonitor,
|
||||||
|
|||||||
@@ -292,6 +292,43 @@ const getMonitorById = async (monitorId) => {
|
|||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Get monitors and Summary by TeamID
|
||||||
|
* @async
|
||||||
|
* @param {Express.Request} req
|
||||||
|
* @param {Express.Response} res
|
||||||
|
* @returns {Promise<Array<Monitor>>}
|
||||||
|
* @throws {Error}
|
||||||
|
*/
|
||||||
|
|
||||||
|
const getMonitorsAndSummaryByTeamId = async (teamId, type) => {
|
||||||
|
try {
|
||||||
|
const monitors = await Monitor.find({ teamId, type });
|
||||||
|
const monitorCounts = monitors.reduce(
|
||||||
|
(acc, monitor) => {
|
||||||
|
if (monitor.status === true) {
|
||||||
|
acc.up += 1;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (monitor.status === false) {
|
||||||
|
acc.down += 1;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (monitor.isActive === false) {
|
||||||
|
acc.paused += 1;
|
||||||
|
}
|
||||||
|
return acc;
|
||||||
|
},
|
||||||
|
{ up: 0, down: 0, paused: 0 }
|
||||||
|
);
|
||||||
|
monitorCounts.total = monitors.length;
|
||||||
|
return { monitors, monitorCounts };
|
||||||
|
} catch (error) {
|
||||||
|
error.method = "getMonitorsAndSummaryByTeamId";
|
||||||
|
throw error;
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Get monitors by TeamID
|
* Get monitors by TeamID
|
||||||
* @async
|
* @async
|
||||||
@@ -464,6 +501,7 @@ module.exports = {
|
|||||||
getAllMonitors,
|
getAllMonitors,
|
||||||
getMonitorStatsById,
|
getMonitorStatsById,
|
||||||
getMonitorById,
|
getMonitorById,
|
||||||
|
getMonitorsAndSummaryByTeamId,
|
||||||
getMonitorsByTeamId,
|
getMonitorsByTeamId,
|
||||||
createMonitor,
|
createMonitor,
|
||||||
deleteMonitor,
|
deleteMonitor,
|
||||||
|
|||||||
@@ -7,6 +7,10 @@ router.get("/aggregate/:monitorId", monitorController.getMonitorAggregateStats);
|
|||||||
router.get("/stats/:monitorId", monitorController.getMonitorStatsById);
|
router.get("/stats/:monitorId", monitorController.getMonitorStatsById);
|
||||||
router.get("/certificate/:monitorId", monitorController.getMonitorCertificate);
|
router.get("/certificate/:monitorId", monitorController.getMonitorCertificate);
|
||||||
router.get("/:monitorId", monitorController.getMonitorById);
|
router.get("/:monitorId", monitorController.getMonitorById);
|
||||||
|
router.get(
|
||||||
|
"/team/summary/:teamId",
|
||||||
|
monitorController.getMonitorsAndSummaryByTeamId
|
||||||
|
);
|
||||||
router.get("/team/:teamId", monitorController.getMonitorsByTeamId);
|
router.get("/team/:teamId", monitorController.getMonitorsByTeamId);
|
||||||
|
|
||||||
router.post(
|
router.post(
|
||||||
|
|||||||
@@ -161,6 +161,19 @@ const getMonitorByIdQueryValidation = joi.object({
|
|||||||
normalize: joi.boolean(),
|
normalize: joi.boolean(),
|
||||||
});
|
});
|
||||||
|
|
||||||
|
const getMonitorsAndSummaryByTeamIdParamValidation = joi.object({
|
||||||
|
teamId: joi.string().required(),
|
||||||
|
});
|
||||||
|
|
||||||
|
const getMonitorsAndSummaryByTeamIdQueryValidation = joi.object({
|
||||||
|
type: joi
|
||||||
|
.alternatives()
|
||||||
|
.try(
|
||||||
|
joi.string().valid("http", "ping", "pagespeed"),
|
||||||
|
joi.array().items(joi.string().valid("http", "ping", "pagespeed"))
|
||||||
|
),
|
||||||
|
});
|
||||||
|
|
||||||
const getMonitorsByTeamIdValidation = joi.object({
|
const getMonitorsByTeamIdValidation = joi.object({
|
||||||
teamId: joi.string().required(),
|
teamId: joi.string().required(),
|
||||||
});
|
});
|
||||||
@@ -381,6 +394,8 @@ module.exports = {
|
|||||||
createMonitorBodyValidation,
|
createMonitorBodyValidation,
|
||||||
getMonitorByIdParamValidation,
|
getMonitorByIdParamValidation,
|
||||||
getMonitorByIdQueryValidation,
|
getMonitorByIdQueryValidation,
|
||||||
|
getMonitorsAndSummaryByTeamIdParamValidation,
|
||||||
|
getMonitorsAndSummaryByTeamIdQueryValidation,
|
||||||
getMonitorsByTeamIdValidation,
|
getMonitorsByTeamIdValidation,
|
||||||
getMonitorsByTeamIdQueryValidation,
|
getMonitorsByTeamIdQueryValidation,
|
||||||
getMonitorStatsByIdParamValidation,
|
getMonitorStatsByIdParamValidation,
|
||||||
|
|||||||
Reference in new issue
Block a user