-
Notifications
You must be signed in to change notification settings - Fork 1k
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
Added the function of sending SMS messages through Alibaba Cloud. #1768
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍👍
/** | ||
* 阿里云账户访问密钥id | ||
*/ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍 hi, please use the english describe.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should all the descriptions inside be written in English?
please add the apache header in files |
|
||
/** | ||
* sms service client for aliyun cloud | ||
* @author lwq |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
* @author lwq |
hi, we will not add author in file header.
import com.fasterxml.jackson.databind.ObjectMapper; | ||
|
||
import java.util.Map; | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
please add head describe here
import java.util.ResourceBundle; | ||
|
||
/** | ||
* @author lwq |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
* @author lwq | |
* alicloud alarm handler implment |
req.setPhoneNumberSet(phones); | ||
try { | ||
Map<String, Object> param = new HashMap<>(); | ||
//taskName:监控名称alert:告警级别 message:告警信息 sysTime:系统时间 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
//taskName:监控名称alert:告警级别 message:告警信息 sysTime:系统时间 | |
// taskName: monitoring name, alert: alarm level, message: alarm content, sysTime:system time |
|
||
@Override | ||
public void send(NoticeReceiver receiver, NoticeTemplate noticeTemplate, Alert alert) { | ||
// SMS notification 短信通知 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
// SMS notification 短信通知 | |
// SMS notification |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for your guidance.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi, the first PR may be a bit troublesome, please fix it.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm
What's changed?
Checklist
Add or update API