Skip to content

Commit

Permalink
[Fix] Change HTTP plugin timeout param to number type (#15234)
Browse files Browse the repository at this point in the history
  • Loading branch information
qingwli authored Nov 28, 2023
1 parent b5eddc0 commit 4c56acb
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
import org.apache.dolphinscheduler.alert.api.AlertChannel;
import org.apache.dolphinscheduler.alert.api.AlertChannelFactory;
import org.apache.dolphinscheduler.alert.api.AlertInputTips;
import org.apache.dolphinscheduler.spi.params.base.DataType;
import org.apache.dolphinscheduler.spi.params.base.PluginParams;
import org.apache.dolphinscheduler.spi.params.base.Validate;
import org.apache.dolphinscheduler.spi.params.input.InputParam;
Expand Down Expand Up @@ -84,6 +85,7 @@ public List<PluginParams> params() {
InputNumberParam.newBuilder(HttpAlertConstants.NAME_TIMEOUT, HttpAlertConstants.TIMEOUT)
.setValue(HttpAlertConstants.DEFAULT_TIMEOUT)
.addValidate(Validate.newBuilder()
.setType(DataType.NUMBER.getDataType())
.setRequired(false)
.build())
.build();
Expand Down

0 comments on commit 4c56acb

Please sign in to comment.