Browse Source

slack changes

pull/3051/head
Daniel Gibbs 5 years ago
parent
commit
179cfb74cd
  1. 21
      lgsm/functions/alert_slack.sh

21
lgsm/functions/alert_slack.sh

@ -17,6 +17,20 @@ json=$(cat <<EOF
{
"color": "#36a64f",
"blocks": [
{
"type": "section",
"text": {
"type": "mrkdwn",
"text": "*${alertemoji} ${alertsubject} ${alertemoji}*"
}
},
{
"type": "section",
"text": {
"type": "mrkdwn",
"text": "${alertbody}"
}
},
{
"type": "section",
"text": {
@ -24,13 +38,6 @@ json=$(cat <<EOF
"text": "*${servername}*"
}
},
{
"type": "section",
"text": {
"type": "mrkdwn",
"text": "*${alertemoji} ${alertsubject} ${alertemoji}* \n ${alertbody}"
}
},
{
"type": "divider"
},

Loading…
Cancel
Save