Hello,
I am sending alerts to Microsoft teams,
when I hit “Runbook Url” button it will redirect me to this link "https://teams.microsoft.com/null"
I add this custom JSON Payload
{
“@type”: “MessageCard”,
“@context”: “https://schema.org/extensions”,
“summary”: “Incident $INCIDENT_ID $EVENT_STATE”,
“themeColor”: “B286BC”,
“sections”: [
{
“startGroup”: true,
“title”: “$CONDITION_NAME incident $EVENT_STATE”,
“activityImage”: “https://static.intercomassets.com/avatars/792690/square_128/newrelic_logo-1476726027.png?1476726027”,
“activityTitle”: “$EVENT_DETAILS”,
“activitySubtitle”: “$SEVERITY $EVENT_TYPE ($INCIDENT_ID)”,
“facts”: [
{
“name”: “Open violations:”,
“value”: “critical $OPEN_VIOLATIONS_COUNT_CRITICAL / warning $OPEN_VIOLATIONS_COUNT_WARNING”
},
{
“name”: “Closed violations:”,
“value”: “critical $CLOSED_VIOLATIONS_COUNT_CRITICAL / warning $CLOSED_VIOLATIONS_COUNT_WARNING”
},
{
“name”: “Current owner:”,
“value”: “$EVENT_OWNER”
}
]
},
{
“text”: “See the triggering query in Insights”,
“images”: [
{
“image”: “$VIOLATION_CHART_URL”
}
],
“heroImage”: {
“image”: “$VIOLATION_CHART_URL”
}
},
{
“potentialAction”: [
{
“@type”: “OpenUri”,
“name”: “Details”,
“targets”: [
{
“os”: “default”,
“uri”: “$INCIDENT_URL”
}
]
},
{
“@type”: “OpenUri”,
“name”: “Acknowledge”,
“targets”: [
{
“os”: “default”,
“uri”: “$INCIDENT_ACKNOWLEDGE_URL”
}
]
},
{
“@type”: “OpenUri”,
“name”: “Runbook”,
“targets”: [
{
“os”: “default”,
“uri”: “$RUNBOOK_URL”
}
]
}
]
},
{
“startGroup”: true,
“activitySubtitle”: “Alert sent by NewRelic for the account “$ACCOUNT_NAME” according to the $POLICY_NAME event policy.”
}
]
}