WebhookPayloadTemplate

WebhookPayloadTemplate
WebhookPayloadTemplate

Represents the payload/template of the webhook configuration. Vmware Aria Operations for Logs supports different webhook endpoint type i.e. SLACK, DATADOG, PAGERDUTY_V1_API, PAGERDUTY_V2_API, VICTOROPS, OTHERS.


You can refer below sample templates for each of the webhook endpoint type :


SLACK:

{"attachments":[{"author_name":"VMwareAriaOperationsforLogs","title":"AlertTriggered:[${severity}]${name}","title_link":"${resultsUrl}","fields":[{"title":"AtTime","value":"${triggeredAt}"},{"title":"Description","value":"${description}"},{"title":"Recommendation","value":"${recommendations}"}],"color":"#008ab1"}]}


DATADOG:

{"alert_type":"${severity}","priority":"normal","source_type_name":"VMwareAriaOperationsforLogs","tags":["Alert"],"text":"%%%\nClick[here](${resultsUrl})formoredetails\n%%%","title":"AlertTriggered:${name}"}


PAGERDUTY_V1_API:

{"client":"VMwareAriaOperationsforLogs","client_url":"${resultsUrl}","description":"[${severity}]${name}","details":{"Description":"${description}","Recommendation":"${recommendations}","Source":"${sourceInfo}","TriggeredAt":"${triggeredAt}"},"event_type":"trigger"}


PAGERDUTY_V2_API:

{"client":"VMwareAriaOperationsforLogs","client_url":"${resultsUrl}","event_action":"trigger","payload":{"custom_details":{"Description":"${description}","Recommendation":"${recommendations}","TriggeredAt":"${triggeredAt}"},"severity":"${severity}","source":"${sourceInfo}","summary":"${name}"}}


VICTOROPS:

{"entity_display_name":"${name}","entity_id":"${name}","message_type":"${severity}","monitoring_tool":"VMwareAriaOperationsforLogs-${sourceInfo}","state_message":"${description},AlertUrl:${resultsUrl}"}


OTHERS:

{"AlertName":"${severity}${name}","AlertType":"${alertType}","EditUrl":"${resultsUrl}","HitCount":"${hitCount}","HitOperator":"${hitOperator}","Info":"${description}","Recommendation":"${recommendations}","SearchPeriod":"${searchPeriod}","Url":"${resultsUrl}"}

This data structure has no properties.