Anomaly Alert - Extended

In the extended version, the following fields are added to the webhook payload (not necessarily at the end of the 'standard' payload, so please pay attention to the template below)

FieldDescription
upperAbsoluteDelta / lowerAbsoluteDeltaUpper or lower absolute delta, representing the difference between the from and to values.
fromInitial delta value.
toFinal delta value.
closeReasonPhraseReason the alert was closed. This field is provided per metric when the alert closes.
impactBusiness Impact data. Contains information about the anomaly's impact, currency, and effect. See the Business Impact documentation for more details.
actionsArray of actions defined by the alert owner. Each action includes a name, URL, button name, and type. See the Actions documentation for more details.
alertGroupStatusStatus of the alert group. Possible values: open, close. The status changes to close once all metrics in the alert group have returned to their normal baseline.
Anomaly Alert - Extended Template:
{"subject": "{{subject}}", "severity": "{{severity}}", "description": "{{description}}", "investigationUrl": "{{appUrl}}/anomalies?tabs=main;0&activeTab=1&anomalies=;0({{alertGroupId}})&duration=;1(1)&durationScale=;minutes(minutes)&delta=;0(0)&deltaType=;percentage(percentage)&resolution=;{{rollup}}({{rollup}})&score=;0(0)&state=;both(both)&direction=;both(both)&bookmark=;()&alertId=;({{alertTriggerIds}})&sort=;significance(significance)&q=;()&constRange=;1h(c)&startDate=;0(0)&endDate=;0(0)", "triageUrl": "{{appUrl}}/#!/r/alerts-console?ref=slack&anomalyIdInv=8dfbdcfc-537f-4e61-9fe5-e04d2a03fc85&constRange=m3&investigationModal=1&sort=updatedTime&triggerIdInv=8dfbdcfc-537f-4e61-9fe5-e04d2a03fc85", "startTime": "{{startTime}} ({{timeZone}})", "startTimeEpoch": "{{startTimeEpoch}}", "anomalyId": "{{alertGroupId}}", "alertGroupId": "{{alertGroupId}}", "alertGroupStatus": "{{alertgGroupStatus}}" "mergedAnomalies": "{{mergedAnomalies}}", "timeScale": "{{timeScale}}", "type" : "Anomaly", "alerts": [ { "title": "{{title}}", "alertStatus": "{{alertStatus}}", "metrics": [ { "closeReasonPhrase": "This metric was last seen 50 minutes ago and has now timed out.", "duration": "{{duration}}", "durationInSeconds": "{{durationInSeconds}}", "startTime": "{{startTime}} ({{timeZone}})", "startTimeEpoch": "{{startTimeEpoch}}", "imageUrl": "{{imageUrl}}", "peak": "{{peak}}", "upperPeak": "{{upperPeak}}", "lowerPeak": "{{lowerPeak}}", "direction": "{{direction}}", "delta": "{{delta}}", "upperPercentageDelta": "{{upperPercentageDelta}}", "upperAbsoluteDelta": "{{upperAbsoluteDelta}}", "from" : "{{upperComparisonValue}}", "to" : "{{upperPeak}}", "lowerPercentageDelta": "{{lowerPercentageDelta}}", "lowerAbsoluteDelta": "{{lowerAbsoluteDelta}}", "from" : "{{lowerComparisonValue}}", "to" : "{{lowerPeak}}", "significance" : "{{score}}", "name": "{{name}}", "id": "{{id}}", "state": "{{state}}", "impactInfo": { "impact": "{{impact value}}", "currency": "{{impact currency}}", "effect": "{{impact direction}}" }, "season": "{{season}}" } ], "triggereIds":"{{alertTriggerIds}}", "events":{ "total":"{{totalUserEvents}}", "buckets":[ { "date":"{{date}}", "total":"{{totalEvents}}", "topEvents":[ { "title" :"{{title}}", "description" :"{{description}}", "source" :"{{source}}", "category" : "{{category}}", "startDate" :"{{startDate}}", "endDate" : "{{endDate}}" } ] } ] }, "alertId": "{{alertConfigurationId}}", "alertSettingsUrl": "{{appUrl}}/alerts/{{alertConfigurationId}}", "description": "{{description}}", "severity": "{{severity}}" } ]}
Anomaly Alert - Extended Example:
{"subject": "Alert Close: Smarttags alert Revenue daily stream per: 20365[high][bb9e7]", "severity": "high", "description": "", "investigationUrl": "http://yourdomain.anodot.com/#!/anomalies?tabs=main;0&activeTab=1&anomalies=;0(bb9e7e1e5cb64c468e11cdf95756c272)&duration=;1(1)&durationScale=;minutes(minutes)&delta=;0(0)&deltaType=;percentage(percentage)&resolution=;longlong(longlong)&score=;0(0)&state=;both(both)&direction=;both(both)&bookmark=;()&alertId=;(62cf1755-cc90-4994-b8e4-86e308455622)&sort=;significance(significance)&q=;()&constRange=;1h(c)&startDate=;0(0)&endDate=;0(0)", "triageUrl": "https://yourdomain.anodot.com/#!/r/alerts-console?ref=slack&anomalyIdInv=8dfbdcfc-537f-4e61-9fe5-e04d2a03fc85&constRange=m3&investigationModal=1&sort=updatedTime&triggerIdInv=8dfbdcfc-537f-4e61-9fe5-e04d2a03fc85", "startTime": "31 Aug, 2020 12:00AM (UTC)", "startTimeEpoch": "1598832000", "anomalyId": "2aefdac1-1a07-4b7b-bf84-09bf5b34f917", "alertGroupId": "2aefdac1-1a07-4b7b-bf84-09bf5b34f917", "alertGroupStatus": "OPEN", "mergedAnomalies": "[bb9e7e1e5cb64c468e11cdf95756b100]", "timeScale": "1d", "type": "Anomaly", "alerts": [ { "title": "Smarttags alert Revenue daily stream per: 20365", "alertStatus": "open", "metrics": [ { "duration": "1d", "durationInSeconds": "86400", "startTime": "31 Aug, 2020 12:00AM (UTC)", "startTimeEpoch": "1598832000", "imageUrl": "", "peak": "17245.6", "upperPeak": "17245.6", "direction": "UP", "delta": 76, "upperPercentageDelta": 76, "upperAbsoluteDelta": 7442.942363620727, "from": 9802.65, "to": 17245.6, "significance": 66, "name": "what=commission_daily.agency_id=8.campaign_id=20365.channel_name=Google.currency_code=USD.ksname=KS1456.profile_id=14", "id": "bc.SSSKY4zhyR456.14.20365.8.Google.USD.KS1456.commission_daily", "state": "CLOSED", "impactInfo": { "impact": "0.2941702200631637", "currency": "USD", "effect": "bad" }, "season": "None" } ], "triggereIds": [ "62cf1755-cc90-4994-b8e4-86e308311425" ], "events": { "total": "0", "buckets": [] }, "actions": [ { "name": "Run Remediation Script", "url": "jenkins://whatever", "buttonName": "Fix", "type": "OUTSIDE_LINK" }, { "name": "Call 911", "url": "Someone please call 911", "buttonName": "Call 911", "type": "OUTSIDE_LINK" } ], "alertId": "7feaee91-0197-4278-a840-6f3fe832a7da", "alertSettingsUrl": "http://yourdomain.anodot.com/#!/alerts/7feaee91-0197-4211-a840-4fdfe832a7da", "description": "", "severity": "high" } ]}