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

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import javax.validation.constraints.NotEmpty;

@Schema(description = "管理后台 - 告警记录新增/修改 Request VO")
@Data
public class AlertRecordSaveReqVO {

    @Schema(description = "ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "31176")
    private Long id;

    @Schema(description = "编码", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotEmpty(message = "编码不能为空")
    private String alertCode;

    @Schema(description = "名称", requiredMode = Schema.RequiredMode.REQUIRED, example = "赵六")
    @NotEmpty(message = "名称不能为空")
    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 = "告警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;

}