|
|
@@ -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"
|
|
|
},
|