Commit Graph

145 Commits

Author SHA1 Message Date
Simon Larsen
86694d9627
Add Playwright dependency and update Dockerfile for installation 2024-11-12 15:17:52 +00:00
Simon Larsen
9b4ef72682
Refactor MonitorTestService and MonitorTest model 2024-10-29 16:59:07 +00:00
Simon Larsen
5e85e73c0b
add do not follow redirect to form 2024-10-16 18:20:03 +01:00
Simon Larsen
d89ee302fd
turn do not redirect to false 2024-10-16 15:08:56 +01:00
Simon Larsen
bbced15076
do not follow redirects when monitoring 2024-10-16 12:50:24 +01:00
Simon Larsen
9e45f4cea9
refactor: Add doNotFollowRedirects option to WebsiteRequest and API
This commit adds the `doNotFollowRedirects` option to the `WebsiteRequest` and `API` classes. When set to `true`, the classes will not follow redirects when making HTTP requests. This is achieved by setting the `maxRedirects` property of the `axiosOptions` object to 0. This change allows for more control over the behavior of HTTP requests and ensures that redirects are not automatically followed.
2024-10-09 20:11:15 +01:00
Simon Larsen
8afa3810a1
Enhance logging in Realtime utilities and add ping monitoring check in Register service 2024-09-25 21:50:50 +01:00
Simon Larsen
08d3bd535d
Add migrations to alter createdAt column type to TIMESTAMP WITH TIME ZONE for File and User tables; update DatabaseBaseModel to use ColumnType.Date for date columns 2024-09-24 17:23:40 +01:00
Simon Larsen
51334d8a8c
Increase retry attempts to 10 for all monitor types and enhance timeout error handling to provide detailed failure reasons 2024-09-24 16:44:01 +01:00
Simon Larsen
1d0e7826f9
Refactor PortMonitor to resolve with PositiveNumber on ping timeout instead of rejecting with UnableToReachServer 2024-09-24 15:22:17 +01:00
Simon Larsen
7b02c6dd44
Refactor timeout handling in monitor types to return null instead of failure response 2024-09-23 18:44:46 +01:00
Simon Larsen
cc8c3f7d9e
Add timeout option to API requests and update monitor configurations 2024-09-18 13:13:24 +01:00
Simon Larsen
dea6c55365
refactor: Update import statements for CommonUI to use Common/UI 2024-08-07 15:50:32 -06:00
Simon Larsen
b29fb6e833
refactor: Update import statements for ProbeMonitor and ServerMonitor to use ProbeMonitorResponse and ServerMonitorResponse 2024-08-05 13:00:31 -06:00
Simon Larsen
52630b16d1
refactor: Update import statements for ProbeMonitor and ServerMonitor to use ProbeMonitorResponse and ServerMonitorResponse 2024-08-05 10:06:53 -06:00
Simon Larsen
d0692ebc8f
refactor: Remove unnecessary whitespace in code 2024-08-04 20:44:30 -06:00
Simon Larsen
63197d263f
refactor: Update monitor interfaces to use consistent naming 2024-08-04 20:33:16 -06:00
Simon Larsen
13b1998261
refactor: Update import statements for ProbeMonitor and ServerMonitor to use ProbeMonitorResponse and ServerMonitorResponse 2024-08-04 19:56:45 -06:00
Simon Larsen
5c3175f9e7
refactor: Update monitor interfaces to use consistent naming
```
2024-08-04 18:01:04 -06:00
Simon Larsen
ba97a1e14b
refactor: Update npm dependency to latest stable version 2024-07-25 17:25:16 -06:00
Simon Larsen
f09419ef50
refactor: Update failureCause message in PingMonitor.ts 2024-06-21 13:59:45 +01:00
Simon Larsen
70a2a3993b
refactor: Update symbol type to use lowercase 'symbol' in ColumnAccessControl files 2024-06-14 12:09:53 +01:00
Simon Larsen
a66a04456b
refactor: Update endpoint URLs for status check script 2024-06-13 21:44:49 +01:00
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
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
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
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
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
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
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