package com.njcn.csdevice.pojo.vo;

import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.njcn.influx.utils.InstantDateSerializer;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.time.Instant;

/**
 *
 * @author xuyang
 * @date 2023/6/19
 */
@Data
public class EnergyTemplateVO {

    private String id;

    private String pid;

    @ApiModelProperty("字典id")
    private String dataId;

    @ApiModelProperty("别名")
    private String anotherName;

    @ApiModelProperty("指标名称")
    private String name;

    @ApiModelProperty("单位")
    private String unit;

    @ApiModelProperty("数据类型")
    private String statMethod;

    @ApiModelProperty("相别")
    private String phase;

    @ApiModelProperty("数据查询表名")
    private String classId;

    @ApiModelProperty("数据时间")
    @JsonSerialize(using = InstantDateSerializer.class)
    private Instant time;

    @ApiModelProperty("数据")
    private Double dataValue;

    @ApiModelProperty("最大值")
    private Double maxValue;

    @ApiModelProperty("最小值")
    private Double minValue;

    @ApiModelProperty("平均值")
    private Double avgValue;

}
