package com.tongran.rocketmq.domain;

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

import java.util.Date;

/**
 * 告警记录对象 rm_alarm_record
 * 
 * @author tongran
 * @date 2025-09-12
 */
@Data
public class RmAlarmRecord extends BaseEntity
{
    private static final long serialVersionUID = 1L;

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

    /** 客户端ID/设备ID */
    @Excel(name = "客户端ID/设备ID")
    private String clientId;

    /** 资源名称 */
    @Excel(name = "资源名称")
    private String resourceName;

    /** 源IP地址 */
    @Excel(name = "源IP地址")
    private String sourceIp;

    /** 告警发生时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "告警发生时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date occurTime;

    /** 告警详细内容 */
    @Excel(name = "告警详细内容")
    private String content;

    /** 重复告警次数 */
    @Excel(name = "重复告警次数")
    private Long repeatCount;

    /** 状态：0-未处理，1-已处理 */
    @Excel(name = "状态：0-未处理，1-已处理")
    private String status;

}
