|
|
@ -28,10 +28,12 @@ import org.apache.dolphinscheduler.alert.api.AlertConstants; |
|
|
|
import org.apache.dolphinscheduler.alert.api.AlertInputTips; |
|
|
|
import org.apache.dolphinscheduler.alert.api.AlertInputTips; |
|
|
|
import org.apache.dolphinscheduler.alert.api.ShowType; |
|
|
|
import org.apache.dolphinscheduler.alert.api.ShowType; |
|
|
|
import org.apache.dolphinscheduler.spi.params.PasswordParam; |
|
|
|
import org.apache.dolphinscheduler.spi.params.PasswordParam; |
|
|
|
|
|
|
|
import org.apache.dolphinscheduler.spi.params.base.DataType; |
|
|
|
import org.apache.dolphinscheduler.spi.params.base.ParamsOptions; |
|
|
|
import org.apache.dolphinscheduler.spi.params.base.ParamsOptions; |
|
|
|
import org.apache.dolphinscheduler.spi.params.base.PluginParams; |
|
|
|
import org.apache.dolphinscheduler.spi.params.base.PluginParams; |
|
|
|
import org.apache.dolphinscheduler.spi.params.base.Validate; |
|
|
|
import org.apache.dolphinscheduler.spi.params.base.Validate; |
|
|
|
import org.apache.dolphinscheduler.spi.params.input.InputParam; |
|
|
|
import org.apache.dolphinscheduler.spi.params.input.InputParam; |
|
|
|
|
|
|
|
import org.apache.dolphinscheduler.spi.params.input.number.InputNumberParam; |
|
|
|
import org.apache.dolphinscheduler.spi.params.radio.RadioParam; |
|
|
|
import org.apache.dolphinscheduler.spi.params.radio.RadioParam; |
|
|
|
|
|
|
|
|
|
|
|
import java.util.ArrayList; |
|
|
|
import java.util.ArrayList; |
|
|
@ -69,11 +71,12 @@ public final class EmailAlertChannelFactory implements AlertChannelFactory { |
|
|
|
.addValidate(Validate.newBuilder().setRequired(true).build()) |
|
|
|
.addValidate(Validate.newBuilder().setRequired(true).build()) |
|
|
|
.build(); |
|
|
|
.build(); |
|
|
|
|
|
|
|
|
|
|
|
InputParam mailSmtpPort = |
|
|
|
InputNumberParam mailSmtpPort = |
|
|
|
InputParam.newBuilder(MailParamsConstants.NAME_MAIL_SMTP_PORT, MailParamsConstants.MAIL_SMTP_PORT) |
|
|
|
InputNumberParam.newBuilder(MailParamsConstants.NAME_MAIL_SMTP_PORT, MailParamsConstants.MAIL_SMTP_PORT) |
|
|
|
.setValue("25") |
|
|
|
.setValue(25) |
|
|
|
.addValidate(Validate.newBuilder() |
|
|
|
.addValidate(Validate.newBuilder() |
|
|
|
.setRequired(true) |
|
|
|
.setRequired(true) |
|
|
|
|
|
|
|
.setType(DataType.NUMBER.getDataType()) |
|
|
|
.build()) |
|
|
|
.build()) |
|
|
|
.build(); |
|
|
|
.build(); |
|
|
|
|
|
|
|
|
|
|
|