Duansg commented on issue #3615:
URL: https://github.com/apache/hertzbeat/issues/3615#issuecomment-3456090868
> 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 .
Hi, thank you for your response. The issue is that while SLS's Webhook
content template supports bulk sending, it currently only allows sending one
item at a time. We sincerely apologize—although this feature has been
developed, it hasn't undergone systematic testing yet, so the PR hasn't been
submitted for resolution. I will submit the relevant PR for bulk sending
support soon, and you'll be able to use it in the next version. Thank you again.
--
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]