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

Added the function of sending SMS messages through Alibaba Cloud. #1768

Merged
merged 8 commits into from
Apr 18, 2024

Conversation

lwqzz
Copy link
Contributor

@lwqzz lwqzz commented Apr 18, 2024

What's changed?

Checklist

  • I have read the Contributing Guide
  • I have written the necessary doc or comment.
  • I have added the necessary unit tests and all cases have passed.

Add or update API

  • I have added the necessary e2e tests and all cases have passed.

Copy link
Contributor

@tomsun28 tomsun28 left a comment

Choose a reason for hiding this comment

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

👍👍

Comment on lines 247 to 249
/**
* 阿里云账户访问密钥id
*/
Copy link
Contributor

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.

Copy link
Contributor Author

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?

@tomsun28
Copy link
Contributor

please add the apache header in files


/**
* sms service client for aliyun cloud
* @author lwq
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
* @author lwq

hi, we will not add author in file header.

import com.fasterxml.jackson.databind.ObjectMapper;

import java.util.Map;

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 head describe here

import java.util.ResourceBundle;

/**
* @author lwq
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
* @author lwq
* alicloud alarm handler implment

req.setPhoneNumberSet(phones);
try {
Map<String, Object> param = new HashMap<>();
//taskName:监控名称alert:告警级别 message:告警信息 sysTime:系统时间
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
//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 短信通知
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
// SMS notification 短信通知
// SMS notification

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Thanks for your guidance.

Copy link
Contributor

@tomsun28 tomsun28 left a 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.

@zqr10159
Copy link
Member

image

Hi, please fix them above, we have style check for codes.

Copy link
Member

@zqr10159 zqr10159 left a comment

Choose a reason for hiding this comment

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

lgtm

@zqr10159 zqr10159 merged commit d209bd3 into apache:master Apr 18, 2024
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Development

Successfully merging this pull request may close these issues.

3 participants