Skip to content

Commit

Permalink
modified the body of the alert and updated the channel alerts are sen…
Browse files Browse the repository at this point in the history
…t to
  • Loading branch information
shanice-skylight committed Aug 16, 2024
1 parent 48cd6e5 commit 8845026
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions ops/services/alerts/alert_app/_var.tf
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@ variable "global_vault" {
}

variable "channel" {
default = "Shanice Musiitwa (ATL, she/her)"
description = "The Slack channel to post to."
default = "project-sr-on-call-alerts"
description = "The Slack channel that the alerts are sent to."
}


Expand Down
2 changes: 1 addition & 1 deletion ops/services/alerts/alert_app/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ resource "azurerm_logic_app_action_http" "workflow_action" {
#How to get this uri programmtically
uri = data.azurerm_key_vault_secret.azure_alert_slack_webhook.value
body = jsonencode({
"text" : "@{triggerBody()?['data']?['essentials']?['alertId']}"
"text" : "@{triggerBody()?['data']?['essentials']}"
})
headers = {
Content-Type = "application/json"
Expand Down

0 comments on commit 8845026

Please sign in to comment.