VMware Aria Operations for LogsWebhook 的格式取决于创建它的查询类型。系统通知、用户警示消息查询,以及从聚合用户查询生成的警示每个都有不同的 Webhook 格式。
系统通知的 Webhook 格式
以下示例显示了系统通知的
VMware Aria Operations for LogsWebhook 格式。
{ "AlertName":" Admin Alert: Worker node has returned to service (Host = 127.0.0.2)", "messages":[ { "text":"This notification was generated from Operations for Logs node (Host = 127.0.0.2, Node Identifier = a31cad22-65c2-4131-8e6c-27790892a1f9). A worker node has returned to service after having been in maintenance mode. The Operations for Logs primary node reports that worker node has finished maintenance and exited maintenance mode. The node will resume receiving configuration changes and serving queries. The node is also now ready to start receiving incoming log messages." "timestamp":1458665320514,"fields":[] } ] }