Merge pull request #950 from dingdayu/master

Update dingding notification title
This commit is contained in:
Louis Lam 2021-11-24 11:36:00 +08:00 committed by GitHub
commit 37e6ca8d77
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -14,8 +14,8 @@ class DingDing extends NotificationProvider {
let params = { let params = {
msgtype: "markdown", msgtype: "markdown",
markdown: { markdown: {
title: monitorJSON["name"], title: `[${this.statusToString(heartbeatJSON["status"])}] ${monitorJSON["name"]}`,
text: `## [${this.statusToString(heartbeatJSON["status"])}] \n > ${heartbeatJSON["msg"]} \n > Time(UTC):${heartbeatJSON["time"]}`, text: `## [${this.statusToString(heartbeatJSON["status"])}] ${monitorJSON["name"]} \n > ${heartbeatJSON["msg"]} \n > Time(UTC):${heartbeatJSON["time"]}`,
} }
}; };
if (this.sendToDingDing(notification, params)) { if (this.sendToDingDing(notification, params)) {