+1 for the Incident start (and would be nice for the end time as well), the e-mail notification gets a nicely formatted date and time, why canât we have the same option in the webhook ? Weâve got a feature idea request for this (Feature Idea).
Taking influences from various sources (including @jtelfer above), Iâve so far got this far with my custom payload
{
"$schema": "https://adaptivecards.io/schemas/adaptive-card.json",
"type": "AdaptiveCard",
"version": "1.0",
"title": "New Relic $EVENT_TYPE",
"text": "Runbook: $RUNBOOK_URL",
"themeColor": "B286BC",
"sections": [
{
"activityTitle": "Policy: $POLICY_NAME - Condition: $CONDITION_NAME",
"activityImage": "https://static.intercomassets.com/avatars/792690/square_128/newrelic_logo-1476726027.png?1476726027",
"activitySubtitle": "$CONDITION_NAME at $TIMESTAMP",
"facts": [
{
"name": "NewRelic Incident #:",
"value": "([$INCIDENT_ID]($INCIDENT_URL)) - $SEVERITY"
},
{
"name": "Details:",
"value": "$EVENT_DETAILS"
},
{
"name": "Current State:",
"value": "$EVENT_STATE"
},
{
"name": "Account:",
"value": "$ACCOUNT_ID $ACCOUNT_NAME"
}
]
},
{
"title": "**Violations - CRITICAL / WARNING**",
"facts": [
{
"name": "Open:",
"value": "$OPEN_VIOLATIONS_COUNT_CRITICAL / $OPEN_VIOLATIONS_COUNT_WARNING"
},
{
"name": "Closed:",
"value": "$CLOSED_VIOLATIONS_COUNT_CRITICAL / $CLOSED_VIOLATIONS_COUNT_WARNING"
}
]
},
{
"title": "Chart",
"images": [
{
"image":"$VIOLATION_CHART_URL"
}
]
}
],
"potentialAction": [
{
"@type": "OpenUri",
"name": "View Incident",
"targets": [
{ "os": "default",
"uri": "$INCIDENT_URL"
}
]
},
{
"@type": "OpenUri",
"name": "Acknowledge Incident",
"targets": [
{ "os": "default", "uri": "$INCIDENT_ACKNOWLEDGE_URL" }
]
},
{
"@type": "OpenUri",
"name": "Open Alert Policy",
"targets": [
{ "os": "default",
"uri": "$POLICY_URL" }
]
},
{
"@type": "OpenUri",
"name": "Open ServiceNow",
"targets": [
{ "os": "default",
"uri": "https://xxxxxxxxxx.service-now.com/nav_to.do?uri=%2Fhome.do%3F" }
]
}
]
}
which gives me something like this
(the ServiceNow system being our incident management tool).
The only thing that really bugs me is the $TIMESTAMP (can you tell

)