Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feat/update alerting dingding.20231113 #140

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

RSDS
Copy link

@RSDS RSDS commented Nov 13, 2023

altering dingding add support type text and makrdown

the repository grafana/grafana also need update, add i will pr there with this pr link

@CLAassistant
Copy link

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.


shaobin.xu seems not to be a GitHub user. You need a GitHub account to be able to sign the CLA. If you have already a GitHub account, please add the email address used for this commit to your account.
You have signed the CLA already but the status is still pending? Let us recheck it.

Comment on lines +119 to +141
} else if msgType == "text" {
bodyMsg = map[string]interface{}{
"msgtype": "text",
"text": map[string]string{
"content": msg,
},
"at": map[string]interface{}{
"atMobiles": atUsers,
"isAtAll": isAtAll,
},
}
} else if msgType == "markdown" {
bodyMsg = map[string]interface{}{
"msgtype": "markdown",
"markdown": map[string]string{
"text": msg,
"title": title,
},
"at": map[string]interface{}{
"atMobiles": atUsers,
"isAtAll": isAtAll,
},
}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please add unit-tests for two new parameter values

Copy link
Contributor

@yuri-tceretian yuri-tceretian left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please add unit-tests for two new parameter values

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: In review
Development

Successfully merging this pull request may close these issues.

3 participants