Commit Graph

89 Commits

Author SHA1 Message Date
Alex Holliday
20d84e0a18 Add docker to check map 2024-11-13 15:34:31 +08:00
Alexander Holliday
ddb40bb56b Merge pull request #1117 from bluewave-labs/feat/be/uptime-percentage-stats
Feat/be/uptime percentage stats, references #1115
2024-11-07 18:30:18 -08:00
Alexander Holliday
605ec393f0 Merge pull request #1114 from bluewave-labs/feat/be/monitor-module-refactor
Feat/be/monitor module refactor
2024-11-07 18:29:41 -08:00
Alex Holliday
5129aca6c2 Fix typo in monitor type lookup 2024-11-08 09:46:30 +08:00
Alex Holliday
91bacf976e isNaN -> Number.isNaN 2024-11-07 11:05:48 +08:00
Alex Holliday
33e88642b3 Add db method for getAllMonitorsWithUptimeStats 2024-11-06 11:17:08 +08:00
Alex Holliday
abdd51802a remove redundant checks and console.log 2024-11-06 10:38:04 +08:00
Alex Holliday
53fb79bbfb Add tests for monitor module 2024-11-05 16:03:37 +08:00
Alex Holliday
f3ec84d36f Refactor for robustness 2024-11-05 14:09:32 +08:00
Alex Holliday
0fd84d5ad8 Fix spelling error, export functions, refactor to inject for ease of testing 2024-11-05 13:50:46 +08:00
Alex Holliday
8605b068ce Refactor for robustness 2024-11-05 13:36:31 +08:00
Alex Holliday
4ca3e3211f Export helper methods, add safe return to 2024-11-05 13:31:10 +08:00
Alex Holliday
2873f68868 reactor getMonitorsByTeamId for clarity 2024-11-05 12:39:35 +08:00
Alex Holliday
4601f95686 refactor getMonitorById for clarity 2024-11-05 12:27:13 +08:00
Alex Holliday
b5e8bdbdcd fix conditional inloop for uptime duration 2024-11-05 12:22:48 +08:00
Alex Holliday
401c3b83fe Refactor getMonitorStatsById for clarity 2024-11-05 12:08:19 +08:00
Alex Holliday
e36abfb9df Minor refactoring in DB modules for readability 2024-11-03 11:48:27 +08:00
Alex Holliday
8730ee9de2 Fix concurrency error with updating monitor, uncomment out code in pageSpeedMonitorSlice 2024-10-28 15:37:21 +08:00
Alex Holliday
bbcdc2f2a2 Add status 404 to getMonitorById error at DB level 2024-10-24 11:42:53 +08:00
Alex Holliday
fd2d16cf78 Format all files on BE with perttier config 2024-10-17 12:07:30 +08:00
Alex Holliday
f057807b56 migrate to esm 2024-10-15 11:57:37 +08:00
Alex Holliday
c1d1e0ad1d Refactor for clarity and correctness, add JS docs 2024-10-01 10:55:51 +08:00
Alex Holliday
6c598b976f Move db models to db folder 2024-10-01 10:01:25 +08:00
Alex Holliday
4748afb93a refactor networkSerivce.getMonitorsByTeamId to take a config objet 2024-09-18 10:57:44 +08:00
Alex Holliday
2d2b101eb7 implement sorting 2024-09-18 10:39:47 +08:00
Alex Holliday
7e1a5b6ec8 add filter param, implement filter 2024-09-18 10:32:41 +08:00
Alex Holliday
113d577ad2 remove console log 2024-09-17 08:46:55 +08:00
Alex Holliday
3ba6f5a56b Fix type error 2024-09-17 08:46:06 +08:00
Alex Holliday
0d12798dd2 Remove checks from monitor query 2024-09-17 08:12:23 +08:00
Alex Holliday
f5fb32885e Add service name and method name to errors in monitorModule 2024-09-15 09:15:59 +08:00
Alex Holliday
9bbd5ce12a Add validation for updateTTL body 2024-09-14 12:16:13 +08:00
Alex Holliday
3f5dc337a0 Update delete all method 2024-09-11 11:22:33 +08:00
Alex Holliday
a89777333a Add route, controller, and DB methods for adding demo monitors 2024-09-11 11:03:39 +08:00
Alex Holliday
cca41fe6df Update pagespeed redux store 2024-09-05 13:25:19 -07:00
Alex Holliday
9eaab0da1a Add network requests and validation 2024-09-05 12:16:29 -07:00
Alex Holliday
cec8ecd985 add DB and controller methods 2024-09-05 11:17:31 -07:00
Alex Holliday
8ea0ef77e9 Count monitors by type 2024-09-04 23:09:14 -07:00
Alexander Holliday
ea99942697 Merge pull request #798 from bluewave-labs/feat/monitor-pagination
Feat/monitor pagination
2024-09-04 19:32:18 -07:00
Alex Holliday
bc7f110b01 Add update hook 2024-09-04 18:42:50 -07:00
Alex Holliday
6aef23e8a4 Use correct array for normalization 2024-09-04 17:41:28 -07:00
Alex Holliday
d32a2a7efa Add pagination to 2024-09-04 17:37:30 -07:00
Alex Holliday
70a4058993 add uptimePercentage to aggregate data 2024-09-04 13:21:51 -07:00
Alex Holliday
6424a0436f Fixed incorrect assignment 2024-09-04 12:15:53 -07:00
Alex Holliday
3270d61624 Add period total checks 2024-09-04 12:00:01 -07:00
Alex Holliday
be582edeeb add time 2024-09-04 11:54:20 -07:00
Alex Holliday
ffc132e19a Add missing else block 2024-09-04 11:45:54 -07:00
Alex Holliday
df16bf3db5 Moved http/ping specific data 2024-09-04 11:25:08 -07:00
Alex Holliday
5ccb85e755 remove unused methods 2024-09-04 11:09:08 -07:00
Alex Holliday
9edf5ba9f9 Refactor 2024-09-04 11:02:18 -07:00
Alex Holliday
e22e374eef Added avgResponseTime to monitor stats, changed date grouping for aggregate stats 2024-09-03 20:28:12 -07:00