shell调用钉钉告警 变量处理
function SendMessageToDingding()
{
curl https://oapi.dingtalk.com/robot/send?access_token=1234567890 \
-H 'Content-Type: application/json' \
-d "
{\"msgtype\": \"text\",
\"text\": {
\"content\": \"余额\n$account_balances_amount 不足 \n$AMOUNT_LOW \"
},
\"at\": {
\"atMobiles\": \"["123456"]\",
\"isAtAll\": \"false\"
}
}"
}
SendMessageToDingding
1 对 “shell调用钉钉告警 变量处理”的想法;