I am trying to get the mail of Container which are down through mail with respective the pod name and the namespaces included. I wanted it to be table but not able to get same.I tried few things,by which i was able to get the data in the body but still not in good format.
"html": "
Please find the Attachment for logs
AlertType:App ALerts {{ctx.metadata._cne-alertType}} AlertSeverity: High < The Errors are observed on . {{#ctx.payload.hits.hits}} {{_source.containername}} {{/ctx.payload.hits.hits}} Container with respective pod {{#ctx.payload.hits.hits}} {{_source.podname}} {{/ctx.payload.hits.hits}}Trigger Time: {{ctx.trigger.triggered_time}} "
Hi there, it sounds like you're trying to insert an HTML table into your email. Is that correct? If so, could you share you watch action configuration? According to the docs you should be able to specify a body.html attribute for the watch action.
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.