danelking commented on issue #3615:
URL: https://github.com/apache/hertzbeat/issues/3615#issuecomment-3455520513

   Solution Explanation
   The issue occurs because the incoming data is in JSON array format [{...}], 
but the current AlibabaCloudSlsExternAlert class expects a single JSON object. 
This causes Jackson deserialization to fail with a MismatchedInputException.
   
   Step-by-step Solution:
   Add missing fields to the existing AlibabaCloudSlsExternAlert class to match 
the incoming JSON structure
   Create a wrapper class AlibabaCloudSlsExternAlertList that can properly 
deserialize the JSON array format
   Provide utility methods to easily access the alert data from the array
   
   the SLS default template  is not worked for me , Solution is above .


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