Commit Graph

389 Commits

Author SHA1 Message Date
Simon Larsen
d3a3f01f20
refactor: Update monitorDestination and monitorDestinationPort in ProbeMonitorResponse interface
This code change updates the ProbeMonitorResponse interface to include the monitorDestination and monitorDestinationPort properties. These properties represent the destination URL or IP address and the corresponding port for monitoring. By adding these properties to the interface, we ensure that the necessary information is available for monitoring purposes.
2024-06-06 13:58:51 +01:00
Simon Larsen
f5584a5037
Add error handling to monitor probing in the FetchListAndProbe class. This change modifies the code to catch any errors that occur during the probing process and log them using the logger. This enhancement improves the robustness of the monitoring functionality by ensuring that errors are properly handled and logged. 2024-06-05 13:30:33 +01:00
Simon Larsen
faf0641503
refactor: Update package.json and Encryption.ts to use latest version of crypto-js 2024-05-29 15:25:09 +01:00
Simon Larsen
5fa7c5baaa
refactor: Remove Webkit browser support
The code changes in this commit remove support for the Webkit browser in the BrowserType enum and SyntheticMonitor module. The Webkit browser was commented out and not being used, so it was decided to remove it to simplify the codebase and reduce unnecessary dependencies. This refactor improves code organization and maintainability.
2024-05-24 13:14:02 +01:00
Simon Larsen
a14614b7de
refactor: Improve page load performance with lazy loading for images 2024-05-24 12:44:34 +01:00
Simon Larsen
df7bd46428
Remove unused isHeadRequest property in MonitorUtil and ApiMonitor 2024-05-23 13:40:34 +01:00
Simon Larsen
e6dadd0673
refactor: Remove unused isHeadRequest property in MonitorUtil and ApiMonitor 2024-05-23 11:43:54 +01:00
Simon Larsen
ee8706e75b
refactor: Remove unused isHeadRequest property in MonitorUtil and ApiMonitor
The code changes remove the unused `isHeadRequest` property in the `MonitorUtil` and `ApiMonitor` classes. This cleanup improves code readability and eliminates unnecessary code.
2024-05-23 10:22:09 +01:00
Simon Larsen
3622021e57
refactor: Update screenshot handling in monitor scripts 2024-05-22 20:21:22 +01:00
Simon Larsen
5aeada377a
feat: Add screenshot functionality to synthetic monitor script 2024-05-22 20:18:13 +01:00
Simon Larsen
5f7dcf7433
refactor: Update timeout handling in monitor scripts
This commit updates the timeout handling in the monitor scripts to use the `WorkflowScriptTimeoutInMS` and `PROBE_CUSTOM_CODE_MONITOR_SCRIPT_TIMEOUT_IN_MS` values from the environment configuration. This ensures that the monitor scripts have consistent and configurable timeout values, improving the reliability and performance of the monitoring system.
2024-05-22 20:06:32 +01:00
Simon Larsen
dbacf998ff
refactor: Add new monitor links to DocsNav
This commit adds new monitor links to the DocsNav utility in the FeatureSet/Docs/Utils/Nav.ts file. The links include "Custom Code Monitor" and "Synthetic Monitor" with their respective URLs. This enhancement improves the navigation experience for users accessing the monitor documentation section.
2024-05-22 12:13:38 +01:00
Simon Larsen
0d41d97b8d
refactor: Fix syntax error in MonitorStep and CriteriaFilterUtil 2024-05-22 11:59:33 +01:00
Simon Larsen
36ecf78c4c
refactor: Update executionTimeInMS type to number in CustomCodeMonitorResponse
This commit updates the type of the executionTimeInMS property in the CustomCodeMonitorResponse interface from PositiveNumber to number. The PositiveNumber type was unnecessary and caused compatibility issues with other parts of the codebase. Changing it to number simplifies the code and ensures consistency across the application.
2024-05-22 11:57:57 +01:00
Simon Larsen
e2a7f7efc5
refactor: Add support for ArrayOfText field type in Detail component
This commit adds support for the ArrayOfText field type in the Detail component. When the field type is ArrayOfText and there is data available, the data is joined with commas and displayed in the UI. This enhancement improves the user experience by properly rendering and handling the ArrayOfText field type in the Detail component.
2024-05-22 10:58:34 +01:00
Simon Larsen
3bf4137db2
refactor: Update Dockerfile to install necessary dependencies
This commit updates the Dockerfile to install necessary dependencies for the application. It adds the installation of bash, curl, python3, make, g++, and various libraries required for playwright. Additionally, it installs net-tools for network-related functionality. These changes ensure that the application has all the required dependencies to run properly in the Docker environment.
2024-05-22 10:24:06 +01:00
Simon Larsen
f592e852f2
refactor: Update logger.error statements for exiting node process 2024-05-22 10:09:16 +01:00
Simon Larsen
a5f05376b0
refactor: Update logger.debug statements for exiting node process
This commit updates the logger.debug statements in multiple files to log the message 'Exiting node process' instead of 'Exiting node process'. This change improves the logging consistency and ensures that the appropriate log level is used for this message.
2024-05-22 10:04:41 +01:00
Simon Larsen
40b9573324
refactor: Update CriteriaFilterUtil to filter options based on checkOn value
This commit refactors the CriteriaFilterUtil class to improve the filtering of options based on the checkOn value. It removes the unnecessary check for CheckOn.Error in the if statement and adds a new if statement specifically for CheckOn.Error. This change ensures that the options are filtered correctly for each checkOn value, enhancing the accuracy and effectiveness of the criteria filtering functionality.
2024-05-21 20:12:14 +01:00
Simon Larsen
f8c43136e9
refactor: Close browser and page in SyntheticMonitor
This commit refactors the SyntheticMonitor class to ensure that the browser and page are properly closed after use. The code now checks if the page and browser objects exist before attempting to close them, preventing potential memory leaks. This improvement enhances the reliability and efficiency of the SyntheticMonitor functionality.
2024-05-21 15:29:47 +01:00
Simon Larsen
3fb804c4e7
Update import paths for BrowserType and ScreenSizeType enums 2024-05-21 14:49:17 +01:00
Simon Larsen
dad1f1a464
feat: Add support for CustomCodeMonitor in MonitorUtil
This commit adds support for the CustomCodeMonitor type in the MonitorUtil class. It includes the necessary code to execute custom JavaScript code provided in the monitor step data. This enhancement improves the flexibility of the monitoring system by allowing users to define and execute their own custom code for monitoring purposes.
2024-05-21 14:43:03 +01:00
Simon Larsen
95e9eacc83
refactor: Update import paths for VMUtil in JavaScript and IfElse components 2024-05-21 14:42:13 +01:00
Simon Larsen
14b5da110f
feat: Update BrowserType enum values
This commit updates the values of the BrowserType enum in the file `Common/Types/BrowserType.ts`. The `Chrome` value is changed to `Chromium`, and the `Safari` value is changed to `Webkit`. This change reflects more accurate and up-to-date browser names, improving the clarity and consistency of the code.
2024-05-21 14:38:15 +01:00
Simon Larsen
b66cd889c0
feat: Update import paths for VMUtil in JavaScript and IfElse components 2024-05-21 14:17:49 +01:00
Simon Larsen
d323c70a51
feat: Add support for SyntheticMonitorResponse in ProbeMonitorResponse
This commit adds the `syntheticMonitorResponse` property to the `ProbeMonitorResponse` interface in order to support the `SyntheticMonitorResponse` type. This allows for the inclusion of synthetic monitor data in the probe monitor response, providing more comprehensive monitoring information.
2024-05-21 13:29:11 +01:00
Simon Larsen
7c14931bb9
refactor: Remove unused @types/markdown-it dependency 2024-05-17 14:30:39 +01:00
snyk-bot
28e809c493
fix: Probe/Dockerfile.tpl to reduce vulnerabilities
The following vulnerabilities are fixed with an upgrade:
- https://snyk.io/vuln/SNYK-ALPINE318-OPENSSL-6593964
- https://snyk.io/vuln/SNYK-ALPINE318-OPENSSL-6593964
- https://snyk.io/vuln/SNYK-UPSTREAM-NODE-6615824
2024-05-10 23:23:48 +00:00
snyk-bot
825d733f92
fix: Probe/package.json & Probe/package-lock.json to reduce vulnerabilities
The following vulnerabilities are fixed with an upgrade:
- https://snyk.io/vuln/SNYK-JS-EJS-6689533
2024-04-29 21:39:29 +00:00
Simon Larsen
06bafdfce6
Refactor cleanup cron jobs in HelmChart/Public/oneuptime/templates/cron-job.yaml and HelmChart/Public/oneuptime/values.yaml 2024-04-24 18:44:00 +01:00
Simon Larsen
0647f7d22a
Refactor initialization code and add default routes in multiple files 2024-04-24 17:44:29 +01:00
Simon Larsen
cc80f6fa54
Refactor initialization code in multiple files 2024-04-24 14:02:17 +01:00
Simon Larsen
382c71be93
Update Dockerfile.tpl files to set APP_VERSION to 1.0.0 if not set 2024-04-09 13:03:32 +01:00
Simon Larsen
445a8d3f35
Update Dockerfile.tpl files to set APP_VERSION to 1.0.0 if not set 2024-04-09 12:53:42 +01:00
Simon Larsen
356bacf9a0
Update Dockerfile.tpl files to set APP_VERSION to 2.0.0 if not set 2024-04-09 12:53:13 +01:00
Simon Larsen
1401daab06
Update tsconfig.json files with resolveJsonModule option 2024-04-08 14:03:07 +01:00
Simon Larsen
41f1470685
Merge pull request #1324 from OneUptime/snyk-fix-161f543984a5181295d0bcb4cd09665f
[Snyk] Security upgrade node from 21.6-alpine3.18 to 21.7.2-alpine3.18
2024-04-06 14:48:20 +01:00
snyk-bot
7f23c0e5a9
fix: upgrade axios from 1.6.7 to 1.6.8
Snyk has created this PR to upgrade axios from 1.6.7 to 1.6.8.

See this package in npm:
https://www.npmjs.com/package/axios

See this project in Snyk:
https://app.snyk.io/org/oneuptime-RsC2nshvQ2Vnr35jHvMnMP/project/49c81d9c-12c2-4e8e-b9e8-72f98b1b595c?utm_source=github&utm_medium=referral&page=upgrade-pr
2024-04-05 20:35:03 +00:00
snyk-bot
9f354383f7
fix: Probe/Dockerfile.tpl to reduce vulnerabilities
The following vulnerabilities are fixed with an upgrade:
- https://snyk.io/vuln/SNYK-UPSTREAM-NODE-6564548
- https://snyk.io/vuln/SNYK-UPSTREAM-NODE-6564550
2024-04-05 20:34:59 +00:00
Simon Larsen
3b85e4fe99
Update test script in package.json 2024-04-05 20:22:15 +01:00
Simon Larsen
73f3ef7622
Delete PingMonitor.test.ts 2024-04-05 20:09:14 +01:00
Simon Larsen
ebc9835374
Refactor ObjectUtil.isEmpty() method and fix variable declaration in SslMonitor.ts 2024-04-03 20:54:35 +01:00
Simon Larsen
9bfcc4f0c8
Update SSL to SSLCertificate in MonitorType 2024-04-03 20:52:40 +01:00
Simon Larsen
7ed0d55479
Refactor ObjectUtil and MonitorService, and fix SSLMonitorCriteria 2024-04-03 20:29:42 +01:00
Simon Larsen
74b57c6d83
Add SSL certificate validation logic and error handling 2024-04-03 20:22:52 +01:00
Simon Larsen
34697dd8ca
Add support for SSL monitor type 2024-04-03 15:30:54 +01:00
Simon Larsen
80f2e12a1f
Add SSL monitor support and criteria filters 2024-04-03 13:46:33 +01:00
Simon Larsen
8e8019a9f8
Add Port Monitoring and Status Report 2024-03-30 13:32:35 +00:00
Simon Larsen
1fbc80db8e
Add probe service and autoscaler configuration 2024-03-29 20:00:34 +00:00
Simon Larsen
1c3e184566
Fix probe offline notification template and update probe registration process 2024-03-29 17:15:04 +00:00
Simon Larsen
4335377285
Add HOSTNAME environment variable to Probe Config and update Probe Index and Email Template Type 2024-03-29 16:47:56 +00:00
Simon Larsen
592ff4efb7
Refactor online check in monitor types 2024-03-29 11:46:33 +00:00
Simon Larsen
3e0c5e8846
Refactor OnlineCheck to use URL instead of Hostname 2024-03-29 11:11:59 +00:00
Simon Larsen
9a25f8ea00
Update package names 2024-03-14 13:43:21 +00:00
Simon Larsen
2310ab0929
Update author information in package.json files 2024-03-14 13:20:47 +00:00
Simon Larsen
2e9cb1de23
Update package.json licenses 2024-03-14 13:19:04 +00:00
Simon Larsen
49a2cbd579
fix newline 2024-03-12 10:43:14 +00:00
Simon Larsen
2bdc0b60f9
Fix bug in login functionality 2024-03-05 16:05:46 +00:00
Simon Larsen
d131ae2494
Refactor JSONFunctions.parse to JSONFunctions.parseJSONObject in MonitorUtil 2024-03-04 12:28:07 +00:00
Simon Larsen
44d405fb8c
Fix formatting issues in code 2024-02-27 18:32:04 +00:00
Simon Larsen
17cfffa16e
Fix bugs and improve code 2024-02-27 18:29:29 +00:00
Simon Larsen
7e256ab68c
Refactor code and fix imports 2024-02-27 16:14:23 +00:00
Simon Larsen
ad29eaad78
Fix import statements and add missing types 2024-02-27 15:56:47 +00:00
Simon Larsen
006a01d0a5
Refactor function signatures and handle errors in fetchCount 2024-02-27 15:42:27 +00:00
Simon Larsen
1034587fbe
Update function types in Git repository 2024-02-27 15:37:49 +00:00
Simon Larsen
35744b938f
Update import paths for FunctionsTypes 2024-02-27 15:18:22 +00:00
Simon Larsen
31875081e5
Update function type names 2024-02-27 15:17:39 +00:00
Simon Larsen
50770eb6e8
Refactor code formatting and types 2024-02-27 15:16:02 +00:00
Simon Larsen
b423d2c5e8
Fix PromiseRejectErrorFunctionType in code 2024-02-27 13:31:55 +00:00
Simon Larsen
1d19789573
Add new function types and update existing functions***
***Refactor function declarations to use type aliases***
***Fix function signature in FilePicker component***
***Refactor function declaration in DashboardHeader component***
***Fix type declaration in BaseAPI.test.ts***
***Import missing function type in PortMonitor.ts***
***Refactor type declaration in Helpers.ts
2024-02-27 13:29:06 +00:00
Simon Larsen
b952f0666b
Merge pull request #1180 from OneUptime/snyk-upgrade-31c1a2457789279317cffb063f11b971
[Snyk] Upgrade axios from 1.6.6 to 1.6.7
2024-02-16 09:15:15 +00:00
Simon Larsen
519daba294
Remove root user from Dockerfiles 2024-02-16 07:40:22 +00:00
snyk-bot
3ade0146ec
fix: upgrade axios from 1.6.6 to 1.6.7
Snyk has created this PR to upgrade axios from 1.6.6 to 1.6.7.

See this package in npm:
https://www.npmjs.com/package/axios

See this project in Snyk:
https://app.snyk.io/org/oneuptime-RsC2nshvQ2Vnr35jHvMnMP/project/49c81d9c-12c2-4e8e-b9e8-72f98b1b595c?utm_source=github&utm_medium=referral&page=upgrade-pr
2024-02-16 02:25:17 +00:00
snyk-bot
43c0301ee9
fix: upgrade axios from 1.6.5 to 1.6.6
Snyk has created this PR to upgrade axios from 1.6.5 to 1.6.6.

See this package in npm:
https://www.npmjs.com/package/axios

See this project in Snyk:
https://app.snyk.io/org/oneuptime-RsC2nshvQ2Vnr35jHvMnMP/project/49c81d9c-12c2-4e8e-b9e8-72f98b1b595c?utm_source=github&utm_medium=referral&page=upgrade-pr
2024-02-15 02:12:42 +00:00
Simon Larsen
b9b3580ca3
Add check for ONEUPTIME_URL in Config.ts 2024-01-29 12:54:43 +00:00
Simon Larsen
5137a07167
Update ONEUPTIME_URL in probe configuration and docker-compose file 2024-01-29 12:15:34 +00:00
Simon Larsen
865c7f0996
Update dependencies and remove unused code 2024-01-29 07:23:24 +00:00
Simon Larsen
8235149acd
Merge pull request #1133 from OneUptime/snyk-upgrade-da52d4336f2225518d3da4ac1176245c
[Snyk] Upgrade axios from 1.6.4 to 1.6.5
2024-01-28 06:09:40 +00:00
snyk-bot
b3d384e0b4
fix: Probe/Dockerfile.tpl to reduce vulnerabilities
The following vulnerabilities are fixed with an upgrade:
- https://snyk.io/vuln/SNYK-ALPINE318-OPENSSL-6152404
- https://snyk.io/vuln/SNYK-ALPINE318-OPENSSL-6152404
- https://snyk.io/vuln/SNYK-ALPINE318-OPENSSL-6160000
- https://snyk.io/vuln/SNYK-ALPINE318-OPENSSL-6160000
- https://snyk.io/vuln/SNYK-ALPINE318-OPENSSL-6191692
2024-01-28 04:04:37 +00:00
snyk-bot
4d1fd2db17
fix: upgrade axios from 1.6.4 to 1.6.5
Snyk has created this PR to upgrade axios from 1.6.4 to 1.6.5.

See this package in npm:
https://www.npmjs.com/package/axios

See this project in Snyk:
https://app.snyk.io/org/oneuptime-RsC2nshvQ2Vnr35jHvMnMP/project/49c81d9c-12c2-4e8e-b9e8-72f98b1b595c?utm_source=github&utm_medium=referral&page=upgrade-pr
2024-01-28 03:57:19 +00:00
snyk-bot
acd85183d4
fix: Probe/package.json & Probe/package-lock.json to reduce vulnerabilities
The following vulnerabilities are fixed with an upgrade:
- https://snyk.io/vuln/SNYK-JS-AXIOS-6144788
2024-01-05 17:05:37 +00:00
snyk-bot
96f1e72e39
fix: Probe/package.json & Probe/package-lock.json to reduce vulnerabilities
The following vulnerabilities are fixed with an upgrade:
- https://snyk.io/vuln/SNYK-JS-AXIOS-6124857
2023-12-27 14:25:27 +00:00
Simon Larsen
632ed7b782
Fix retry logic for response times exceeding 10 seconds 2023-12-13 13:53:55 +00:00
Simon Larsen
2b8b818bc7
Update dependencies and package.json files 2023-12-12 15:11:04 +00:00
Simon Larsen
c84cbe5575
Add dep-check script to package.json files 2023-12-12 13:48:44 +00:00
Simon Larsen
9801232a8c
Merge pull request #1025 from OneUptime/snyk-upgrade-ae228c91abe943bf5f30641698c015a7
[Snyk] Upgrade node-cron from 3.0.2 to 3.0.3
2023-12-03 17:15:12 +00:00
snyk-bot
565da66333
fix: upgrade @types/ping from 0.4.3 to 0.4.4
Snyk has created this PR to upgrade @types/ping from 0.4.3 to 0.4.4.

See this package in npm:
https://www.npmjs.com/package/@types/ping

See this project in Snyk:
https://app.snyk.io/org/oneuptime-RsC2nshvQ2Vnr35jHvMnMP/project/49c81d9c-12c2-4e8e-b9e8-72f98b1b595c?utm_source=github&utm_medium=referral&page=upgrade-pr
2023-12-03 17:11:27 +00:00
snyk-bot
6efb29faa1
fix: upgrade node-cron from 3.0.2 to 3.0.3
Snyk has created this PR to upgrade node-cron from 3.0.2 to 3.0.3.

See this package in npm:
https://www.npmjs.com/package/node-cron

See this project in Snyk:
https://app.snyk.io/org/oneuptime-RsC2nshvQ2Vnr35jHvMnMP/project/49c81d9c-12c2-4e8e-b9e8-72f98b1b595c?utm_source=github&utm_medium=referral&page=upgrade-pr
2023-12-03 17:11:23 +00:00
snyk-bot
0e0365007d
fix: Probe/Dockerfile.tpl to reduce vulnerabilities
The following vulnerabilities are fixed with an upgrade:
- https://snyk.io/vuln/SNYK-ALPINE318-OPENSSL-6032386
- https://snyk.io/vuln/SNYK-ALPINE318-OPENSSL-6032386
- https://snyk.io/vuln/SNYK-ALPINE318-OPENSSL-6055795
- https://snyk.io/vuln/SNYK-ALPINE318-OPENSSL-6055795
2023-12-01 18:12:24 +00:00
Simon Larsen
39b0d6e7b6
Merge pull request #937 from OneUptime/snyk-upgrade-3765fb5997db5ec0013131e4ab84f78c
[Snyk] Upgrade @types/ping from 0.4.1 to 0.4.3
2023-11-22 19:28:19 +00:00
Simon Larsen
e1a0cd90e4
Refactor online check in monitor classes 2023-11-22 19:27:01 +00:00
Simon Larsen
ca52106c23
Add SSL certificate check function 2023-11-22 17:32:58 +00:00
snyk-bot
69e045d581
fix: upgrade @types/ping from 0.4.1 to 0.4.3
Snyk has created this PR to upgrade @types/ping from 0.4.1 to 0.4.3.

See this package in npm:
https://www.npmjs.com/package/@types/ping

See this project in Snyk:
https://app.snyk.io/org/oneuptime-RsC2nshvQ2Vnr35jHvMnMP/project/49c81d9c-12c2-4e8e-b9e8-72f98b1b595c?utm_source=github&utm_medium=referral&page=upgrade-pr
2023-11-22 17:19:13 +00:00
Simon Larsen
61d3604a9d
Fix formatting issues in MonitorType.ts,
MonitorCriteriaInstance.ts, ApiMonitor.ts,
CriteriaFilter.tsx, MonitorStep.tsx,
MonitorService.ts, WebsiteMonitor.ts, and
PingMonitor.ts
2023-11-22 16:40:19 +00:00
Simon Larsen
b375e8341d
Fix error handling and add timeout functionality
in PortMonitor
2023-11-22 16:37:37 +00:00
Simon Larsen
fd3694b93f
Refactor monitor classes to handle retry count 2023-11-22 16:25:38 +00:00
Simon Larsen
753141e524
Add MonitorType Port and update MonitorStep
component
2023-11-22 16:02:31 +00:00
Simon Larsen
7584bfd26c
Update hostname in PingMonitor test 2023-11-22 12:13:19 +00:00
Simon Larsen
eff654c117
Update ping test URLs and IP address 2023-11-22 11:57:12 +00:00
Simon Larsen
727f923dbb
Add clear-modules script to package.json files 2023-11-22 11:13:15 +00:00