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

   ## What's changed?
   
   <!-- Describe Your PR Here -->
   #3397 
   This PR introduces support for parsing and handling __script__("<script>") 
style expressions within periodic threshold rules. The motivation is to enhance 
flexibility by supporting SQL-style expressions in addition to existing PromQL 
expressions. The update includes:
   
   - New lexical rule: __script__(...) syntax is now recognized by the lexer.
   - New syntax rule: supports quoted string content for embedded SQL or PromQL.
   - Backward compatibility: original PromQL queries without __script__ are 
still supported and prioritized as default.
   - Update unit test.
   
   ## 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: notifications-unsubscr...@hertzbeat.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscr...@hertzbeat.apache.org
For additional commands, e-mail: notifications-h...@hertzbeat.apache.org

Reply via email to