我正在尝试使用 riemann 在电子邮件的正文部分创建自定义消息。我无法动态附加该字段。
黎曼配置:
(let [email (mailer
{:host "XXXXX" :port XX :user "XXX" :pass "XXX" :auth "true"
:subject (fn [events] "Team")
:body (fn [events]
(apply str "Hello Team, now the time is" (:timestamp event) "Thank You!"))
:from "xxx@gmail.com"})]
我的输出:
Hello Team, now the time is Thank You!
我的预期输出:
Hello Team, now the time is 12:13:45 Thank You!.
我的时间戳没有附加在:body 中。