package com.njcn.influx.pojo.dto;

import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.njcn.common.utils.serializer.InstantDateSerializer;
import lombok.Data;
import org.influxdb.annotation.Column;

import java.time.Instant;

/**
 * Description:
 * Date: 2023/6/5  10:23【需求编号】
 *
 * @author clam
 * @version V1.0.0
 */


@Data
public class StatisticalDataDTO {

    @Column(name = "time")
    @JsonSerialize(using = InstantDateSerializer.class)
    private Instant time;

    @Column(name = "line_id")
    private String lineId;

    @Column(name = "phasic_type")
    private String phaseType;

    @Column(name = "value_type")
    private String valueType;

    /**
     * 指标值
     */
    private Double value;

    /**
     * 指标名称
     */
    private String statisticalName;

    /**
     * 指标
     */
    private String target;

    /**
     * 指标最大值
     */
    private Double maxValue;

    /**
     * 指标最小值
     */
    private Double minValue;


}
