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

Loading…
Cancel
Save