44 Commits

Author SHA1 Message Date
Marvin Zhang
39f83d71b1 fix: update NotificationRequestDTO to include BSON field names for setting and channel 2025-09-16 15:43:43 +08:00
Marvin Zhang
3678d14082 feat: implement bounded goroutine pools for task execution and notification handling; enhance task scheduler with graceful shutdown and cleanup routines; update metric component for new time range options 2025-08-06 17:57:37 +08:00
Marvin Zhang
8bd3ef0b72 feat: add goroutine count metric to the MetricService and update related files 2025-07-08 14:08:31 +08:00
Marvin Zhang
4f57d277e7 refactor: standardize timestamp fields and improve code clarity
- Updated timestamp fields across the codebase from `*_ts` to `*_at` for consistency and clarity.
- Renamed constants for node status from "on"/"off" to "online"/"offline" to better reflect their meanings.
- Enhanced validation and error handling in various components to ensure data integrity.
- Refactored test cases to align with the new naming conventions and improve readability.
2025-04-21 18:13:22 +08:00
Marvin Zhang
d6badb533d feat: enhance API routing and OpenAPI documentation support
- Introduced a new OpenAPI wrapper using Fizz for improved API documentation
- Refactored base controller to support more flexible route handling
- Added dynamic route registration with OpenAPI metadata
- Implemented generic response types for consistent API responses
- Updated router initialization to support OpenAPI documentation endpoint
- Improved route and resource naming utilities
- Migrated existing controllers to use new routing and response mechanisms
2025-03-11 23:45:06 +08:00
Marvin Zhang
3276083994 refactor: replace apex/log with structured logger across multiple services
- Replaced all instances of apex/log with a structured logger interface in various services, including Api, Server, Config, and others, to enhance logging consistency and context.
- Updated logging calls to utilize the new logger methods, improving error tracking and service monitoring.
- Added logger initialization in services and controllers to ensure proper logging setup.
- Improved error handling and logging messages for better clarity during service operations.
- Removed unused apex/log imports and cleaned up related code for better maintainability.
2024-12-24 19:11:19 +08:00
Marvin Zhang
c897fb58e4 refactor: streamline error handling and improve HTTP request management
- Removed the print flag from handleError function, simplifying error logging based on the development environment.
- Introduced a new performRequest function for standardized HTTP requests with JSON bodies, enhancing code reusability.
- Updated SendIMNotification and related functions to utilize the new RequestParam type for better clarity and consistency.
- Normalized HTTP request paths in the createHttpRequest method to ensure correct URL formatting.
- Added detailed error logging for JSON unmarshaling failures in syncFiles method.
- Introduced a NewHttpClient function to create HTTP clients with customizable timeouts.
2024-12-21 11:27:58 +08:00
Marvin Zhang
1fe74fa8a5 fix: optimized node runners calculation 2024-12-11 20:43:40 +08:00
Marvin Zhang
dfaf18fbd6 feat: added notification test 2024-11-14 16:44:49 +08:00
Marvin Zhang
a1a7a52f15 feat: added notification channel test 2024-11-14 12:12:41 +08:00
Marvin Zhang
e33fcfc150 refactor: renamed files and services 2024-11-05 11:15:27 +08:00
Marvin Zhang
71f0a210ba refactor: fixed dependency errors 2024-11-01 15:19:48 +08:00
Marvin Zhang
7fe770ae9d feat: Update notification trigger patterns and add alert trigger
The code changes modify the notification constants and models to update the trigger patterns for tasks and nodes. Additionally, a new trigger for alerts is added to the constants. This change allows for more flexible matching of notification triggers.
2024-07-31 15:58:41 +08:00
Marvin Zhang
ea5ec117cc refactor: Remove unused code for SMTP authentication and add Gmail OAuth2 authentication support 2024-07-27 19:29:43 +08:00
Marvin Zhang
e8bdfd228d refactor: Update models to include sender email, name, and mail recipients for notification requests 2024-07-27 16:06:26 +08:00
Marvin Zhang
8d5a0b0c0e refactor: Add Outlook authentication support for sending emails 2024-07-26 18:15:15 +08:00
Marvin Zhang
0e2170f644 refactor: Update models to include sender email, name, and mail recipients for notification requests 2024-07-26 15:33:58 +08:00
Marvin Zhang
9650f78d03 refactor: Update IM notification function to include larger title size in MSTeams notifications 2024-07-26 12:07:20 +08:00
Marvin Zhang
96b89d05b8 refactor: Update NotificationChannelV2 model to include Telegram notification settings 2024-07-25 22:58:39 +08:00
Marvin Zhang
eef3eea777 refactor: Refactor IM notification function to improve code structure and readability 2024-07-25 16:50:03 +08:00
Marvin Zhang
df563a5e2d feat: Add Discord and MSTeams as new IM providers for notification channels 2024-07-25 16:38:37 +08:00
Marvin Zhang
70cc86c4d3 refactor: Update NotificationChannelV2 model to include Telegram notification settings 2024-07-25 14:40:37 +08:00
Marvin Zhang
46839f103e refactor: Update IM notification function to support DingTalk and Wechat Work providers 2024-07-24 17:58:05 +08:00
Marvin Zhang
7b1fa48fd9 feat: support notification for node 2024-07-24 17:00:35 +08:00
Marvin Zhang
13c6a20ee3 feat: Add Slack as a new IM provider for notification channels 2024-07-23 17:45:52 +08:00
Marvin Zhang
7f9fac0fc0 feat: updated notification settings and channels 2024-07-23 17:24:40 +08:00
Marvin Zhang
9ffdd3f1cd refactor: Remove unused code and update models and functions for notification channels and settings 2024-07-23 12:22:59 +08:00
Marvin Zhang
c893b5452e refactor: Update SMTPPort type to int in NotificationChannelV2 model 2024-07-22 17:34:55 +08:00
Marvin Zhang
b33c61a893 refactor: Update mail provider constants and add new provider for exmail 2024-07-21 23:34:18 +08:00
Marvin Zhang
029c5d1448 refactor: Update NotificationChannelV2 model to simplify mail and IM settings 2024-07-18 17:41:54 +08:00
Marvin Zhang
821383a677 refactor: Update SendNotification function to handle old and new settings triggers 2024-07-18 00:05:48 +08:00
Marvin Zhang
a5104663e8 refactor: Add description, provider, and settings fields to NotificationChannelV2 model 2024-07-17 17:39:07 +08:00
Marvin Zhang
8c79d51a5a refactor: Update SendNotification function to handle old and new settings triggers 2024-07-16 17:54:06 +08:00
Marvin Zhang
b7cafb4623 refactor: Update SendNotification function to handle old and new settings triggers 2024-07-15 17:34:04 +08:00
Marvin Zhang
16ac26ef0c feat: Add template field to NotificationSettingV2 model 2024-07-13 10:03:24 +08:00
Marvin Zhang
d0611b4567 refactor: removed unnecessary code 2024-07-12 18:00:19 +08:00
Marvin Zhang
e66e4d6741 feat: updated models for notification 2024-07-11 18:08:40 +08:00
Marvin Zhang
aca0c0ebce refactor: removed unnecessary code 2024-07-11 12:45:29 +08:00
Marvin Zhang
023ba27566 fix: unable to sync directories to work nodes 2024-07-01 15:59:20 +08:00
Marvin Zhang
73a5a64ba4 fix: notification issue 2024-06-26 13:18:28 +08:00
Marvin Zhang
326a8d67d0 fix: missing data source issue 2024-06-26 12:37:24 +08:00
Marvin Zhang
6a60433d25 feat: added modules 2024-06-14 16:37:48 +08:00
Marvin Zhang
dc21bce11f feat: added modules 2024-06-14 15:59:48 +08:00
Marvin Zhang
0b67fd9ece feat: added modules 2024-06-14 15:42:50 +08:00