0

我使用 riemann ruby​​ 客户端进行电子邮件警报。我的电子邮件如下所示:

#riemann.codec.Event{:host "foo", :service "bar", :state "critical", :description "{\"exception\":\"some error\",\"datetime\":\"20210104061928\"..."}

当电子邮件的内容很大时(当我得到异常回溯时),很难理解数据。

有没有办法以 JSON 格式接收这些数据,以便可以将其复制粘贴到代码编辑器中并轻松格式化?

我在这些存储库中找不到任何有关电子邮件格式的文档:

https://github.com/riemann/riemann

https://github.com/riemann/riemann-ruby-client

4

0 回答 0