vRealize Log InsightWebhook 的格式取决于创建它的查询类型。系统通知、用户警示消息查询,以及从聚合用户查询生成的警示每个都有不同的 Webhook 格式。

您必须是 vRealize Log Insight管理员,才能配置 vRealize Log Insight 以发送系统通知。

向第三方程序发送系统通知时,必须编写一个填充码,以便让第三方程序的格式能够理解 vRealize Log Insight信息。

系统通知的 Webhook 格式

以下示例显示了系统通知的 vRealize Log InsightWebhook 格式。
	
{
   "AlertName":" Admin Alert: Worker node has returned to service  (Host = 127.0.0.2)",
   "messages":[
      {
         "text":"This notification was generated from Log Insight 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 Log Insight master 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":[]
      }
   ]
}