package com.iailab.module.model.api.mcs.dto; import com.fasterxml.jackson.annotation.JsonFormat; import io.swagger.v3.oas.annotations.media.Schema; import lombok.Data; import javax.validation.constraints.NotNull; import java.io.Serializable; import java.math.BigDecimal; import java.util.Date; /** * @author PanZhibao * @Description * @createTime 2024年08月29日 */ @Schema(description = "RPC 模型 - 调度建议 DTO") @Data public class ScheduleSuggestRespDTO implements Serializable { private static final long serialVersionUID = 1L; @Schema(description = "ID") private String id; @Schema(description = "标题") @NotNull(message = "应用编号不能为空") private String title; @Schema(description = "内容") @NotNull(message = "应用编号不能为空") private String content; @Schema(description = "排序") @NotNull(message = "应用编号不能为空") private Integer sort; @Schema(description = "方案ID") private String schemeId; @Schema(description = "预警ID") private String alarmId; @Schema(description = "预测项ID") private String itemId; @Schema(description = "模型ID") private String modelId; @Schema(description = "调整对象") @NotNull(message = "应用编号不能为空") private String scheduleObj; @Schema(description = "调整类型") private String scheduleType; @Schema(description = "调整策略") private String scheduleStrategy; @Schema(description = "调整方式") private String adjustMode; @Schema(description = "调整值") private BigDecimal adjustValue; @Schema(description = "调整单位") private String adjustUnit; @Schema(description = "持续时长") private BigDecimal adjustTimes; @Schema(description = "调整开始时间") @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8") private Date adjustStart; @Schema(description = "调整结束时间") @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8") private Date adjustEnd; @Schema(description = "调度时间") private Date scheduleTime; @Schema(description = "状态(0未处理 1已采纳 2已忽略)") private Integer status; @Schema(description = "处理人") private String handler; @Schema(description = "处理时间") private Date handleTime; @Schema(description = "创建时间") private Date createTime; }