package com.qqchen.deploy.backend.deploy.dto;

import com.qqchen.deploy.backend.deploy.enums.DeployRecordStatusEnums;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.time.LocalDateTime;

/**
 * 部署统计信息DTO
 *
 * @author qqchen
 * @since 2025-11-02
 */
@Data
@Schema(description = "部署统计信息")
public class DeployStatisticsDTO {

    @Schema(description = "总部署次数")
    private Long totalCount;

    @Schema(description = "成功次数")
    private Long successCount;

    @Schema(description = "失败次数")
    private Long failedCount;

    @Schema(description = "运行中次数")
    private Long runningCount;

    @Schema(description = "最近部署时间")
    private LocalDateTime lastDeployTime;

    @Schema(description = "最近部署人")
    private String lastDeployBy;

    @Schema(description = "最新部署状态")
    private DeployRecordStatusEnums latestStatus;
}

