package com.njcn.harmonic.pojo.param;

import com.njcn.common.pojo.constant.PatternRegex;
import com.njcn.harmonic.constant.HarmonicValidMessage;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Pattern;

/**
 * 异常数据统计参数
 * @author denghuajun
 * @version 1.0.0
 * @date 2022/3/17
 */ 
@Data
public class HistoryHarmOverLimitParam{

    @ApiModelProperty("监测点集合")
    private String[] lineId;

    @ApiModelProperty("开始时间")
    @NotBlank(message = HarmonicValidMessage.DATA_NOT_BLANK)
    @Pattern(regexp = PatternRegex.TIME_FORMAT, message = "时间格式错误")
    private String searchBeginTime;

    @ApiModelProperty("结束时间")
    @NotBlank(message = HarmonicValidMessage.DATA_NOT_BLANK)
    @Pattern(regexp = PatternRegex.TIME_FORMAT, message = "时间格式错误")
    private String searchEndTime;

    @ApiModelProperty("指标集合")
    private String[] condition;

    @ApiModelProperty("谐波次数集合")
    private String[] harmonics;

    @ApiModelProperty("间谐波次数集合")
    private String[] inHarmonics;
}
