77 Commits

Author SHA1 Message Date
Nawaz Dhandala
6e20e7f08f fix: correct typo in debug log message for sleep duration in FetchListAndProbe 2025-12-03 18:45:25 +00:00
Nawaz Dhandala
2eec57befd refactor(proxy-config): robust hostname/port extraction, normalize ports, and tidy formatting
- Improve extractHostnameAndPort and splitHostAndPort to handle IPv6 brackets, single-colon ports, and trimmed port values; return explicit result objects.
- Normalize host/port parsing logic and ensure port values are trimmed before use.
- Consolidate import formatting and split long method signatures for readability.
- Minor formatting/whitespace cleanups in Probe Config, Alive, Register, Monitor, and NO_PROXY parsing.
2025-10-24 15:12:12 +01:00
Nawaz Dhandala
f403c6a9e9 feat(proxy): add NO_PROXY support and use request URL for proxy agent selection
- Parse NO_PROXY / no_proxy in Probe Config into a trimmed list
- Wire NO_PROXY into UI docs, Helm chart values, and probe Docker/compose examples
- Add NO_PROXY env var to Helm probe template when provided
- Pass target URL to ProxyConfig.getRequestProxyAgents / getHttpProxyAgent / getHttpsProxyAgent so proxy selection is per-request
- Update probe calls (Alive, Metrics, FetchList, FetchMonitorTest, Register, Monitor ingest/reporting, Api/Website/Ssl monitors) to use local URL variables and supply them to proxy helpers
- Minor refactors to avoid inline URL construction where reused
2025-10-24 15:02:36 +01:00
Simon Larsen
ff57061190 Refactor API calls to use new request structure
- Updated API.post and API.get calls across multiple components to use the new object structure for requests, including specifying `url`, `data`, and `headers` explicitly.
- This change improves code readability and consistency in how API requests are made throughout the application.
2025-09-19 22:36:05 +01:00
Nawaz Dhandala
11894d0ba5 Refactor API calls to use unified request structure
- Updated MicrosoftTeams and Slack classes to use the new API.post structure with url and data properties.
- Refactored API utility methods to accept a single options object for HTTP requests, improving consistency across the codebase.
- Modified various service and utility classes (e.g., CopilotPullRequestService, CodeRepositoryUtil, and ApiMonitor) to align with the new API request format.
- Enhanced error handling and logging for API responses.
- Updated tests to accommodate changes in API method signatures.
2025-09-19 20:57:54 +01:00
Nawaz Dhandala
6504731025 refactor: Replace 'any' types with specific types for improved type safety across multiple files 2025-09-02 20:41:24 +01:00
Simon Larsen
0ecdc775db feat: Refactor proxy configuration to use getRequestProxyAgents method across multiple modules 2025-09-02 14:02:40 +01:00
Simon Larsen
82065c20b1 feat: Add HTTP/HTTPS proxy support in FetchMonitorTest, FetchList, and Alive jobs 2025-09-02 13:58:15 +01:00
Simon Larsen
e24d757dbb feat: Enhance e2e cron job configuration and add random sleep to FetchList job 2025-04-25 18:59:59 +01:00
Simon Larsen
57a2c9d2fc refactor: Streamline job initialization and improve worker management in Probe module 2025-04-25 14:51:48 +01:00
Simon Larsen
eae11f068f refactor: Enhance probe initialization by adding worker management and improving logging 2025-04-24 21:40:14 +01:00
Simon Larsen
0104a671b7 refactor: Remove unnecessary whitespace in FetchListAndProbe run method 2025-04-24 09:32:51 +01:00
Simon Larsen
dd758e05ec refactor: Remove unnecessary sleep logic and related imports in FetchListAndProbe 2025-04-24 09:30:48 +01:00
Simon Larsen
0e87b04272 refactor: Clean up import statements and remove unnecessary whitespace in multiple files 2025-04-24 09:08:44 +01:00
Simon Larsen
09b562cb2a refactor: Remove unused variables and streamline worker initialization in probe 2025-04-24 09:08:03 +01:00
Simon Larsen
bf9843dc3d refactor: update debug log messages in FetchMonitorTest for clarity 2025-03-21 19:52:52 +00:00
Simon Larsen
55bee569d8 refactor: clean up whitespace and formatting in FetchMonitorTest and Index files 2025-03-21 19:48:59 +00:00
Simon Larsen
46f2adb459 feat: add new cron schedule for FetchMonitorTest to run every ten seconds 2025-03-21 19:47:58 +00:00
Simon Larsen
4ab150bf75 refactor: clean up code formatting and improve readability in various files 2025-01-27 10:54:46 +00:00
Simon Larsen
d7845407f0 fix: set default limit to 100 in FetchMonitorTest 2025-01-27 10:47:35 +00:00
Simon Larsen
bc244bfde1 feat: rename notification rule type for clarity and update related migration 2025-01-20 13:55:56 +00:00
Simon Larsen
eaebcc748d fix: add missing newline for improved code readability in Alive job 2025-01-20 11:52:23 +00:00
Simon Larsen
13c2f6e73d feat: implement probe alive endpoint and enhance state change notification with project ID 2025-01-20 11:49:46 +00:00
Simon Larsen
e947d21060 Add random sleep interval to FetchList worker to reduce server load 2024-12-04 15:57:02 +00:00
Simon Larsen
815ae7161d Rename Ingestor to ProbeIngest; update configurations, routes, and Docker support; add new request types and workflows 2024-11-21 17:18:22 +00:00
Simon Larsen
9b4ef72682 Refactor MonitorTestService and MonitorTest model 2024-10-29 16:59:07 +00: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
de7d06e5d7 refactor: Improve error handling in FetchListAndProbe
This commit refactors the FetchListAndProbe class to improve error handling. It adds try-catch blocks around the main logic and logs any errors that occur using the logger. Additionally, it includes a catch block to handle any errors thrown during the fetchListAndProbe function. This change ensures that errors are properly handled and logged, preventing potential issues with the monitoring process.
2024-07-05 10:18:03 +01:00
Simon Larsen
cc3f003be5 refactor: Improve error handling in FetchListAndProbe
This commit refactors the FetchListAndProbe class to improve error handling. It adds try-catch blocks around the main logic and logs any errors that occur using the logger. Additionally, it includes a catch block to handle any errors thrown during the fetchListAndProbe function. This change ensures that errors are properly handled and logged, preventing potential issues with the monitoring process.
2024-07-04 22:22:37 +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
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
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
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
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
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
865c7f0996 Update dependencies and remove unused code 2024-01-29 07:23:24 +00:00
Simon Larsen
62d1679938 Add BaseModel import to multiple files 2023-11-14 16:13:58 +00:00
Simon Larsen
99af4fe826 Fix formatting and remove unused imports 2023-11-14 15:24:05 +00:00
Simon Larsen
3023e22de3 refactor common server to add base api for analytics 2023-11-14 14:21:26 +00:00
Simon Larsen
199ef2b009 fix fmt 2023-10-12 20:04:37 +01:00
Simon Larsen
7e796dff42 probeapi request 2023-10-09 19:04:39 +01:00
Simon Larsen
34817a1066 probe-api to ingestor 2023-10-09 18:54:23 +01:00
Simon Larsen
e16c9cb3b7 fix fmt 2023-09-22 13:04:54 +01:00
Simon Larsen
f63b910d78 add more probe logs 2023-09-22 12:49:51 +01:00
Simon Larsen
f553d1c995 fix add seconds 2023-08-07 16:34:05 +01:00