Commit Graph

257 Commits

Author SHA1 Message Date
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
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
400150486d implement base check 2024-10-30 10:20:42 +08:00
Alexander Holliday
100cea64af Revert "Fix/devops/docker compose" 2024-10-30 10:13:03 +08:00
Alex Holliday
a7c00e9383 Refactor models to extend a base check model 2024-10-30 09:49:10 +08:00
Alex Holliday
7fd63f8004 Add option secret to Monitor for monitors that require authentication 2024-10-29 13:47:30 +08:00
Alex Holliday
b1abe87633 Update HardwareCheck model to include all standard fields 2024-10-29 13:46:51 +08:00
Alex Holliday
8730ee9de2 Fix concurrency error with updating monitor, uncomment out code in pageSpeedMonitorSlice 2024-10-28 15:37:21 +08:00
Alexander Holliday
699bea5806 Merge branch 'develop' into fix/be/refactor-auth-controller 2024-10-26 09:39:13 +08:00
Alex Holliday
70872c368d Add status to hardware check model 2024-10-25 10:48:37 +08:00
Alex Holliday
cf032859a1 Merge branch 'develop' into feat/be/hardware-monitor-notifications 2024-10-25 10:44:30 +08:00
Alexander Holliday
3275bc49d0 Merge pull request #1058 from bluewave-labs/feat/be/logger-improvement
feat/be/logger improvement
2024-10-25 09:33:47 +08:00
Alexander Holliday
c1963171b3 Merge pull request #1057 from bluewave-labs/fix/be/server-index-cleanup
fix/be/server-index-cleanup
2024-10-25 09:28:33 +08:00
Alex Holliday
268ad695bf replace console.log statements with logger 2024-10-24 15:35:30 +08:00
Alex Holliday
a0248c81c2 standardize log statements 2024-10-24 15:28:13 +08:00
Alex Holliday
0649002d27 removed unused endpoints from index.js, moved db connection to index.js 2024-10-24 12:31:22 +08:00
Alex Holliday
bbcdc2f2a2 Add status 404 to getMonitorById error at DB level 2024-10-24 11:42:53 +08:00
Alex Holliday
18081ceb77 fix typo in userModule 2024-10-24 11:01:17 +08:00
Alex Holliday
d392317f13 Add optional threshold fields to Monitor for hardware monitoring 2024-10-23 12:05:50 +08:00
Alex Holliday
b500a451d3 disc -> disk 2024-10-23 12:05:12 +08:00
Alex Holliday
49fe463e95 Merge branch 'develop' into feat/be/create-hardware-monitor 2024-10-22 10:05:46 +08:00
Alex Holliday
433dbf1907 Revise disk field from diskSchema to [diskSchema] 2024-10-22 10:02:14 +08:00
Alex Holliday
ce20edc2ff Add hardware check module to MongoDB 2024-10-21 11:55:18 +08:00
Alex Holliday
18fe7abaca Add db module for Hardware Checks 2024-10-21 11:54:58 +08:00
Alex Holliday
0190624a91 Add hardware type to monitor model 2024-10-21 11:48:25 +08:00
Alex Holliday
ddb058b58c Add model for hardware monitoring checks 2024-10-21 10:58:16 +08:00
Alex Holliday
0dad5c282c Added missing var declaration 2024-10-21 10:07:02 +08:00
Alex Holliday
fd2d16cf78 Format all files on BE with perttier config 2024-10-17 12:07:30 +08:00
Alex Holliday
81f1fe4694 Merge branch 'develop' into feat/be/esm 2024-10-17 10:42:57 +08:00
Alex Holliday
05dae6b060 Add missing variable def to User model 2024-10-16 11:45:38 +08:00
Rushi Gandhi
581b6217a9 Update appSetting for refresh token & Update documentation 2024-10-15 14:11:47 +05:30
Alex Holliday
f057807b56 migrate to esm 2024-10-15 11:57:37 +08:00
Alex Holliday
6e95d28e27 Implement pausing/resuming maintenance windows 2024-10-09 14:28:44 +08:00
Alex Holliday
ad9d735127 implement editing maintenance windows 2024-10-09 14:10:38 +08:00
Alex Holliday
e3c0944062 Add route, controller, and DB methods for fetching maintenance window by ID 2024-10-09 12:06:01 +08:00
Alex Holliday
114cfd6cb7 add put route, controller, and db method for maintenance window 2024-10-09 11:33:12 +08:00
Alex Holliday
7b65debed6 Populate table 2024-10-04 15:25:41 +08:00
Alex Holliday
68296eccc3 Add getMaintenanceWindowsByTeamId 2024-10-04 13:49:53 +08:00