【发布时间】:2018-03-27 03:23:17
【问题描述】:
我想触发带有自定义正文消息的邮件。我可以在我的正文中解析时间戳,但是当我尝试在正文中添加字符串值时我想在我的正文中添加字符串我无法重现它。谁能帮我解决它。我正处于非常关键的实施阶段。
请在下面找到我的示例代码,
(let [email (mailer {:host "cccc"
:port 25
:user "111111"
:pass "111111"
:auth "true"
:subject (fn [events] "1DD Monitoring - Response time SLA breach")
:body (fn [events]
(apply str "Hello Team, now the time is" (:**silo** events) "Thank You!"))
:from "xxx@xxxx.com"})]
我在 silo 字段中从 logstash 向 riemann 发送值,我想在 body 中打印 silo 字段值
【问题讨论】: