package com.cmvr.test.model.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.Date;

@Data
@ApiModel("任务执行日志记录VO")
public class TeTaskInstLogVO {
    @ApiModelProperty("任务名称")
    private String taskName;

    @ApiModelProperty("检测项ID（Node-RED 流程ID）")
    private String itemId;

    @ApiModelProperty("检测项名称")
    private String itemName;

    @ApiModelProperty("节点ID")
    private String nodeId;

    @ApiModelProperty("节点名称")
    private String nodeName;

    @ApiModelProperty(value = "节点类型", example = "inject/function/end")
    private String nodeType;

    @ApiModelProperty(value = "操作类型", notes = "EDGE边缘系统  LLM大模型")
    private String operate;

    @ApiModelProperty(value = "具体操作", notes = "开启相机、关闭相机等等")
    private String action;

    @ApiModelProperty(value = "实例状态", example = "SUCCESS/RUNNING/FAILED/PAUSED/STOPPED")
    private String instStatus;

    @ApiModelProperty("日志内容")
    private String message;

    @ApiModelProperty("执行参数类型（入口、出口）")
    private String paramsType;

    @ApiModelProperty("执行参数（JSON格式）")
    private String params;

    @ApiModelProperty("创建时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;
}
