Skip to content

Instantly share code, notes, and snippets.

@JarroVGIT
Created June 21, 2020 19:50
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save JarroVGIT/e9a902bb56f34419c6c3c0760404fa18 to your computer and use it in GitHub Desktop.
Save JarroVGIT/e9a902bb56f34419c6c3c0760404fa18 to your computer and use it in GitHub Desktop.
@concat('{
"','@','type": "MessageCard",
"','@','context": "https://schema.org/extensions",
"summary": "Issue 176715375",
"themeColor": "eb3434",
"title": "Azure DataFactory notification alert!",
"sections": [
{
"activityTitle": "Pipeline failed",
"activitySubtitle": "UTC: ', utcnow() ,'",
"activityImage": "https://azurebloggingresources.blob.core.windows.net/images/error-red-cross.png",
"facts": [
{
"name": "Data Factory:",
"value": "**', pipeline().DataFactory,'**"
},
{
"name": "Pipeline",
"value": "**',pipeline().Pipeline,'**"
},
{
"name": "Run ID",
"value": "**',pipeline().RunId,'**"
}
],
"text": "Error in inner pipeline: ',activity('Call failing pipeline').output.pipelineName,'"
}
],
"potentialAction": [
{
"@type": "OpenUri",
"name": "Go to Pipeline Run",
"targets": [
{
"os": "default",
"uri": "https://adf.azure.com"
}
]
}
]
}')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment