package cn.iocoder.yudao.module.iot.controller.admin.alertrecord.vo;

import cn.iocoder.yudao.framework.common.pojo.PageParam;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.ToString;
import org.springframework.format.annotation.DateTimeFormat;

import java.time.LocalDateTime;

import static cn.iocoder.yudao.framework.common.util.date.DateUtils.FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND;

@Schema(description = "管理后台 - 告警记录分页 Request VO")
@Data
@EqualsAndHashCode(callSuper = true)
@ToString(callSuper = true)
public class AlertRecordPageReqVO extends PageParam {

    @Schema(description = "编码")
    private String alertCode;

    @Schema(description = "名称", example = "赵六")
    private String alertName;

    @Schema(description = "告警类型", example = "2")
    private String alertType;

    @Schema(description = "告警等级")
    private String alertLevel;

    @Schema(description = "告警内容")
    private String content;

    @Schema(description = "告警条件")
    private String conditionInfo;

    @Schema(description = "逻辑表达式")
    private String conditionFormula;

    @Schema(description = "数据值")
    private String dataValue;

    @Schema(description = "数据类型", example = "1")
    private String dataType;

    @Schema(description = "单位")
    private String dataUnit;

    @Schema(description = "描述", example = "你说的对")
    private String dataTypeRemark;

    @Schema(description = "创建时间")
    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
    private LocalDateTime[] createTime;

    @Schema(description = "告警ID", example = "16965")
    private Long alertId;

    @Schema(description = "告警音频")
    private String alertAudio;

    @Schema(description = "重复告警")
    private Boolean isRepeat;

    @Schema(description = "不重复间隔")
    private Long noRepeatDuration;

    @Schema(description = "来源ID", example = "19268")
    private Long dataId;

    @Schema(description = "来源编码")
    private String dataCode;

    @Schema(description = "来源名称", example = "芋艿")
    private String dataName;

}