AlbertYang0801 opened a new pull request, #3777:
URL: https://github.com/apache/hertzbeat/pull/3777

   ## What's changed?
   
   Monitoring Center - Added cron expression support for scheduling type in 
add/edit monitor forms, with full backward compatibility.
   
   For details:
   
   - [x] 1. Added a scheduler type selector on the task configuration page with 
two options: "Second Interval" (default) and "Cron Expression". When "Cron 
Expression" is selected, the input field dynamically switches to a Cron 
expression input with syntax guidance.
   - [x] 2. Implemented real-time frontend validation for Cron expressions to 
ensure correctness.
   - [x] 3. The monitoring task cycle display now supports Cron expressions.
   - [x] 4. For tasks using Cron expressions, the system now uses Quartz to 
parse expressions and accurately calculate the next trigger time.
   - [x] 5. Enhanced internationalization support for updated UI text to ensure 
proper display in multilingual environments.
   
   
   
   **scheduling type** 
   
   - Second Interval
   
       <img width="2126" height="1186" alt="PixPin_2025-09-19_13-48-50" 
src="https://github.com/user-attachments/assets/460aa0ca-af94-4850-ba9c-be94654dbd44";
 />
       <img width="2530" height="1179" alt="PixPin_2025-09-19_13-49-27" 
src="https://github.com/user-attachments/assets/d5919324-2257-43e7-aabf-0aec08efb218";
 />
   
   - Cron Expression
   
       <img width="2527" height="1171" alt="PixPin_2025-09-19_13-49-51" 
src="https://github.com/user-attachments/assets/48949257-30ba-4966-8bf0-9583749f81fc";
 />
       <img width="2520" height="1243" alt="PixPin_2025-09-19_13-49-08" 
src="https://github.com/user-attachments/assets/32a85ff9-050e-4259-b2ff-ac68d5e6ca8a";
 />
   
   
   
   ## Checklist
   
   - [x] I have read the [[Contributing 
Guide](https://hertzbeat.apache.org/docs/community/code_style_and_quality_guide)](https://hertzbeat.apache.org/docs/community/code_style_and_quality_guide)
   - [ ] I have written the necessary doc or comment.
   - [x] I have added the necessary unit tests and all cases have passed.
   
   ## Add or update API
   
   - [] I have added the necessary [[e2e 
tests](https://github.com/apache/hertzbeat/tree/master/e2e)](https://github.com/apache/hertzbeat/tree/master/e2e)
 and all cases have passed.
   
   
   I have configured `35 * * * * ?` . According to the monitoring history 
chart, metrics are collected after the 35th second.
   
![PixPin_2025-09-19_14-00-50](https://github.com/user-attachments/assets/efe7b1da-8cd8-4508-a608-5798a8f0beb0)
   
   
   
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to