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

   ## What's changed?
   
   Please refer to: [#3482](https://github.com/apache/hertzbeat/pull/3482)
   
   Reference: PR[#3482]
   
   Modification details:
   1. Fixed the semantic issue with `unless` /  `or`. For details, see: 
[Logical/set binary 
operators](https://prometheus.io/docs/prometheus/latest/querying/operators/#logicalset-binary-operators)
   2. Add/fix test cases and pass historical cases successfully .
   
   The effect after the fix is as follows:
   
   UNLESS:
   <img width="1511" alt="iShot_2025-06-21_00 33 10" 
src="https://github.com/user-attachments/assets/c2f03569-982e-483b-943a-0e50ef8a3491";
 />
   <img width="1511" alt="iShot_2025-06-21_00 33 41" 
src="https://github.com/user-attachments/assets/8fcfe738-b173-4698-a1f7-439f688d2e4a";
 />
   <img width="1510" alt="iShot_2025-06-21_00 41 22" 
src="https://github.com/user-attachments/assets/887fd39f-e124-4968-9984-3897b89d24a7";
 />
   
   OR:
   <img width="1511" alt="iShot_2025-06-21_00 42 07" 
src="https://github.com/user-attachments/assets/fd365cf1-70f1-4e4c-845b-ec44ccdb8e59";
 />
   <img width="1511" alt="iShot_2025-06-21_12 20 23" 
src="https://github.com/user-attachments/assets/c6ee83aa-2dfa-49a4-bd1f-dcd2e3a96547";
 />
   <img width="1510" alt="iShot_2025-06-21_00 45 48" 
src="https://github.com/user-attachments/assets/caad1943-3df6-43be-aebc-293cbfccd0f5";
 />
   
   ## Checklist
   
   - [x]  I have read the [Contributing 
Guide](https://hertzbeat.apache.org/docs/community/code_style_and_quality_guide)
   - [x]  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) and all cases have 
passed.
   


-- 
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