package com.cmvr.inspection.domain.vo;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.LinkedHashMap;
import java.util.Map;

/** 单次巡检任务的结果汇总。 */
@Data
@ApiModel(value = "InspectionReportSummaryVo", description = "单次巡检任务的结果统计汇总")
public class InspectionReportSummaryVo
{
    @ApiModelProperty("巡检任务实例数据库ID")
    private String taskInstanceId;
    @ApiModelProperty("结果总数")
    private long totalCount;
    @ApiModelProperty("正常结果数")
    private long normalCount;
    @ApiModelProperty("异常结果数")
    private long abnormalCount;
    @ApiModelProperty("待人工复核数")
    private long pendingCount;
    @ApiModelProperty("识别失败数")
    private long recognizeFailedCount;
    @ApiModelProperty("按告警级别统计，key为1、2、3")
    private Map<Integer, Long> alarmLevelCounts = new LinkedHashMap<>();
    @ApiModelProperty("按结果类型统计，key为PPE、METER、MANUAL")
    private Map<String, Long> resultTypeCounts = new LinkedHashMap<>();
    @ApiModelProperty("是否不存在待复核和识别失败结果")
    private boolean reviewCompleted;
}
