package com.ruoyi.rocketmq.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.common.core.web.domain.BaseEntity;
import lombok.Data;

import java.util.Date;
import java.util.List;

/**
 * 告警策略对象 rm_alarm_policy
 * 
 * @author gyt
 * @date 2025-09-12
 */
@Data
public class RmAlarmPolicy extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键ID */
    private Long id;

    /** 告警策略名称 */
    @Excel(name = "告警策略名称")
    private String alarmName;

    /** 策略描述 */
    @Excel(name = "策略描述")
    private String alarmDescription;

    /** 关联的资源组ID */
    @Excel(name = "关联的资源组ID")
    private Long resourceGroupId;
    /** 关联资源组名称*/
    private String resourceGroupName;
    /**  包含设备 */
    private String resourceName;

    /** 状态：0-禁用，1-启用 */
    @Excel(name = "状态：0-禁用，1-启用")
    private String status;

    /** 策略下发时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "策略下发时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date deployTime;
    /** 告警策略内容*/
    private List<RmAlarmRule> alarmRuleList;

}
