package ru.soune.nocopy.dto.monitoring;

import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Builder;
import lombok.Data;
import ru.soune.nocopy.entity.monitoring.MonitoringType;

import java.time.LocalDateTime;

/**
 * Response for status monitoring
 */
@Data
@Builder
public class MonitoringStatusResponse {

    @JsonProperty("file_id")
    private String fileId;

    @JsonProperty("file_name")
    private String fileName;

    @JsonProperty("monitoring_type")
    private MonitoringType monitoringType;

    @JsonProperty("next_run")
    private LocalDateTime nextRun;

    @JsonProperty("last_run")
    private LocalDateTime lastRun;

    @JsonProperty("last_run_status")
    private String lastRunStatus;

    @JsonProperty("is_active")
    private boolean isActive;

    @JsonProperty("need_add_tokens")
    private boolean needAddTokens;
}
