All Apps and Add-ons

Webhook Alerts for Hangouts Chat addon bug with formatting carriage return

david_poulin
New Member

Hi,

recently the app "Webhook Alerts for Hangouts Chat" was added to our cloud instance by Splunk. The alert action to send message to a google channel seem to use "simple message text" format from google documentation.

Some formatting option like bold, italic and so on work well, but seem that the carriage return is not well intrepreted or converted or stripped for some reason...

i try 

\n

\\n

 

and the result in the chanel that we see the \n directly...without conversion....

 

Could someone help me on that please

 

@resmungo you are indicated as the author of this add-on, could you help us on that ?

 

Thand

 

Labels (2)
0 Karma

david_poulin
New Member

When i test it and use the documentation of google : https://developers.google.com/chat/reference/message-formats/basic

The other formatting and the link worked perfectly....but for some strange reason the \n didn't work...

While you were developping, could it may possible the escape caractere is double-escaped in the code that send the message ?

 

Otherwise i will try to search on google side

0 Karma

resmungo
Explorer

Since we just pass the text directly as the message component I'm not sure how to address this. If there are any suggestions I'd be happy to give it a shot.

0 Karma
Get Updates on the Splunk Community!

Extending Observability Content to Splunk Cloud

Watch Now!   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to leverage ...

More Control Over Your Monitoring Costs with Archived Metrics!

What if there was a way you could keep all the metrics data you need while saving on storage costs?This is now ...

New in Observability Cloud - Explicit Bucket Histograms

Splunk introduces native support for histograms as a metric data type within Observability Cloud with Explicit ...