package com.ruoyi.modules.monitor.config;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

/**
 * 告警邮件配置属性
 * 
 * @author lydgt
 */
@Component
@ConfigurationProperties(prefix = "alarm.email")
public class AlarmEmailProperties
{
    /**
     * 是否启用邮件告警
     */
    private boolean enabled = false;

    /**
     * 收件人列表，多个用逗号分隔
     */
    private String recipients;

    public boolean isEnabled()
    {
        return enabled;
    }

    public void setEnabled(boolean enabled)
    {
        this.enabled = enabled;
    }

    public String getRecipients()
    {
        return recipients;
    }

    public void setRecipients(String recipients)
    {
        this.recipients = recipients;
    }
}
