package com.jay.monitor.data.server.report.alert.rule;

import com.jay.monitor.data.core.model.serializable.base.BaseDTO;
import com.jay.monitor.data.server.enums.AlertRuleEnums;

/**
 * @Module 告警
 * @Description 告警规则定义
 * @Author liukaixiong
 * @Date 2021/1/14 10:47
 */
public interface AlertRule {

    /**
     * 规则名称
     *
     * @return
     */
    public AlertRuleEnums ruleType();

    /**
     * 是否触发告警
     *
     * @param baseDTO
     * @return
     */
    public boolean isTrigger(BaseDTO baseDTO);

}
