package cn.lihongjie.coal.cronJobLog.dto;

import cn.lihongjie.coal.base.dto.CommonDto;

import lombok.Data;

import org.hibernate.annotations.Formula;

import java.time.LocalDateTime;

@Data
public class CreateCronJobLogDto extends CommonDto {
    private String cronJob;

    private String params;


    private String stackTrace;


    private LocalDateTime startTime;
    private LocalDateTime endTime;

    @Formula("(EXTRACT(EPOCH FROM (endTime - startTime)) * 1000)")
    private long time;

    private String logs;
}
