Skip to content

Commit d50e990

Browse files
DTOSS-12524: Show resolved timestamp in Slack alert message
1 parent 999d7c0 commit d50e990

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • infrastructure/modules/logic-app-slack-alert

infrastructure/modules/logic-app-slack-alert/main.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ resource "azurerm_logic_app_action_custom" "post_to_slack" {
8989
},
9090
{
9191
"type": "mrkdwn",
92-
"text": "@{concat('*Fired At*\n', triggerBody()?['data']?['essentials']?['firedDateTime'])}"
92+
"text": "@{if(equals(triggerBody()?['data']?['essentials']?['monitorCondition'], 'Resolved'), concat('*Resolved At*\n', triggerBody()?['data']?['essentials']?['resolvedDateTime']), concat('*Fired At*\n', triggerBody()?['data']?['essentials']?['firedDateTime']))}"
9393
},
9494
{
9595
"type": "mrkdwn",

0 commit comments

Comments
 (0)