-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(ms-teams)!: Use MS Power Automate for sending Teams messges
Implements #1239
- Loading branch information
Göran Sander
committed
Oct 1, 2024
1 parent
2769553
commit 4f46e60
Showing
5 changed files
with
211 additions
and
97 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
203 changes: 203 additions & 0 deletions
203
src/config/teams_templates/failed-reload-qseow.handlebars
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,203 @@ | ||
{ | ||
"type": "message", | ||
"attachments": [ | ||
{ | ||
"contentType": "application/vnd.microsoft.card.adaptive", | ||
"contentUrl": null, | ||
"content": { | ||
"$schema": "http://adaptivecards.io/schemas/adaptive-card.json", | ||
"type": "AdaptiveCard", | ||
"version": "1.3", | ||
"msteams": { | ||
"width": "Full" | ||
}, | ||
"body": [ | ||
{ | ||
"type": "TextBlock", | ||
"size": "large", | ||
"weight": "bolder", | ||
"text": "Qlik Sense reload task failed", | ||
"style": "heading", | ||
"wrap": true | ||
}, | ||
{ | ||
"type": "ColumnSet", | ||
"columns": [ | ||
{ | ||
"type": "Column", | ||
"items": [ | ||
{ | ||
"type": "Image", | ||
"style": "person", | ||
"url": "https://raw.githubusercontent.com/ptarmiganlabs/butler/master/icon.png", | ||
"altText": "Butler the Bot", | ||
"size": "medium" | ||
} | ||
], | ||
"width": "auto" | ||
}, | ||
{ | ||
"type": "Column", | ||
"items": [ | ||
{ | ||
"type": "TextBlock", | ||
"weight": "bolder", | ||
"text": "Butler the Bot", | ||
"wrap": true | ||
}, | ||
{ | ||
"type": "TextBlock", | ||
"spacing": "none", | ||
"text": "", | ||
"isSubtle": true, | ||
"wrap": true | ||
} | ||
], | ||
"width": "stretch" | ||
} | ||
] | ||
}, | ||
{ | ||
"type": "FactSet", | ||
"spacing": "large", | ||
"facts": [ | ||
{ | ||
"title": "App name:", | ||
"value": "{{appName}}" | ||
}, | ||
{ | ||
"title": "App ID:", | ||
"value": "{{appId}}" | ||
}, | ||
{ | ||
"title": "Task name:", | ||
"value": "{{taskName}}" | ||
}, | ||
{ | ||
"title": "Task ID:", | ||
"value": "{{tasId}}" | ||
}, | ||
{ | ||
"title": "App owner:", | ||
"value": "{{appOwnerName}}" | ||
}, | ||
{ | ||
"title": "App owner user:", | ||
"value": "{{appOwnerUserDirectory}}/{{appOwnerUserId}}" | ||
}, | ||
{ | ||
"title": "App owner email:", | ||
"value": "{{appOwnerEmail}}" | ||
}, | ||
{ | ||
"title": "Reload started:", | ||
"value": "{{executionStartTime.startTimeLocal1}}" | ||
}, | ||
{ | ||
"title": "Duration:", | ||
"value": "{{executionDuration.hours}} hours, {{executionDuration.minutes}} minutes, {{executionDuration.seconds}} seconds" | ||
}, | ||
{ | ||
"title": "Reload ended:", | ||
"value": "{{executionStopTime.stopTimeLocal1}}" | ||
}, | ||
{ | ||
"title": "User starting the reload:", | ||
"value": "{{executionStartTime.startTimeLocal1}}" | ||
} | ||
] | ||
}, | ||
|
||
{ | ||
"type": "ActionSet", | ||
"spacing": "extraLarge", | ||
"separator": true, | ||
"actions": [ | ||
{ | ||
"type": "Action.OpenUrl", | ||
"title": "Open QMC", | ||
"tooltip": "Open management console in Qlik Sense", | ||
"url": "{{qlikSenseQMC}}", | ||
"role": "button" | ||
}, | ||
{ | ||
"type": "Action.OpenUrl", | ||
"title": "Open hub", | ||
"tooltip": "Open hub Qlik Sense", | ||
"url": "{{qlikSenseQMC}}", | ||
"role": "button" | ||
} | ||
] | ||
}, | ||
|
||
|
||
{ | ||
"type": "Container", | ||
"spacing": "extraLarge", | ||
"style": "emphasis", | ||
"items": [ | ||
{ | ||
"type": "TextBlock", | ||
"size": "large", | ||
"weight": "bolder", | ||
"text": "Details", | ||
"style": "heading" | ||
}, | ||
{ | ||
"type": "FactSet", | ||
"separator": true, | ||
"facts": [ | ||
{ | ||
"title": "Execution result:", | ||
"value": "{{executionStatusText}}" | ||
}, | ||
{ | ||
"title": "Execution result code:", | ||
"value": "{{executionStatusNum}}" | ||
}, | ||
{ | ||
"title": "Log timestamp:", | ||
"value": "{{logTimeStamp}}" | ||
}, | ||
{ | ||
"title": "Log message:", | ||
"value": "{{logMessage}}" | ||
} | ||
] | ||
}, | ||
{ | ||
"type": "CodeBlock", | ||
"codeSnippet": "{{executionDetailsConcatenated}}" | ||
} | ||
] | ||
}, | ||
{ | ||
"type": "Container", | ||
"spacing": "extraLarge", | ||
"style": "emphasis", | ||
"items": [ | ||
{ | ||
"type": "TextBlock", | ||
"size": "large", | ||
"weight": "bolder", | ||
"text": "End of script log", | ||
"style": "heading" | ||
}, | ||
{ | ||
"type": "TextBlock", | ||
"size": "small", | ||
"weight": "normal", | ||
"text": "Last {{scriptLogTailCount}} rows shown. The script log contains {{scriptLogSize}} rows in total.", | ||
"style": "heading" | ||
}, | ||
{ | ||
"type": "CodeBlock", | ||
"codeSnippet": "{{scriptLogTail}}" | ||
} | ||
] | ||
} | ||
] | ||
} | ||
} | ||
] | ||
} |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters