-
Notifications
You must be signed in to change notification settings - Fork 4.5k
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
[Improvement][Alert] Add timeout params for HTTP plugin #15174
Conversation
qingwli
commented
Nov 16, 2023
- close [Improvement][Alert] Add timeout params for HTTP plugin #15172
Codecov ReportAttention:
Additional details and impacted files@@ Coverage Diff @@
## dev #15174 +/- ##
=========================================
Coverage 38.23% 38.24%
- Complexity 4695 4696 +1
=========================================
Files 1285 1285
Lines 45454 45471 +17
Branches 4951 4952 +1
=========================================
+ Hits 17381 17391 +10
- Misses 26181 26188 +7
Partials 1892 1892 ☔ View full report in Codecov by Sentry. |
...dingtalk/src/main/java/org/apache/dolphinscheduler/plugin/alert/dingtalk/DingTalkSender.java
Outdated
Show resolved
Hide resolved
...olphinscheduler-alert-api/src/main/java/org/apache/dolphinscheduler/alert/api/HttpUtils.java
Outdated
Show resolved
Hide resolved
281a379
to
59c4fc0
Compare
@@ -73,6 +75,9 @@ | |||
bodyParams = paramsMap.get(HttpAlertConstants.NAME_BODY_PARAMS); | |||
contentField = paramsMap.get(HttpAlertConstants.NAME_CONTENT_FIELD); | |||
requestType = paramsMap.get(HttpAlertConstants.NAME_REQUEST_TYPE); | |||
timeout = StringUtils.isNotBlank(paramsMap.get(HttpAlertConstants.NAME_TIMEOUT)) | |||
? Integer.parseInt(paramsMap.get(HttpAlertConstants.NAME_TIMEOUT)) |
Check notice
Code scanning / CodeQL
Missing catch of NumberFormatException Note
...duler-alert-http/src/main/java/org/apache/dolphinscheduler/plugin/alert/http/HttpSender.java
Show resolved
Hide resolved
...ttp/src/main/java/org/apache/dolphinscheduler/plugin/alert/http/HttpAlertChannelFactory.java
Outdated
Show resolved
Hide resolved
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
20410b8
to
2847675
Compare
SonarCloud Quality Gate failed.
|