Browse Source

json format

pull/3051/head
Daniel Gibbs 5 years ago
parent
commit
4aa191bea8
  1. 28
      lgsm/functions/alert_slack.sh

28
lgsm/functions/alert_slack.sh

@ -17,20 +17,20 @@ json=$(cat <<EOF
{ {
"color": "#36a64f", "color": "#36a64f",
"blocks": [ "blocks": [
{ {
"type": "section", "type": "section",
"text": { "text": {
"type": "mrkdwn", "type": "mrkdwn",
"text": "*${alertemoji} ${alertsubject} ${alertemoji}*" "text": "*${alertemoji} ${alertsubject} ${alertemoji}*"
} }
}, },
{ {
"type": "section", "type": "section",
"text": { "text": {
"type": "mrkdwn", "type": "mrkdwn",
"text": "*${servername}*" "text": "*${servername}*"
} }
}, },
{ {
"type": "section", "type": "section",
"text": { "text": {

Loading…
Cancel
Save