package com.yeejoin.amos.boot.module.jxiop.biz.ESDto;

import io.github.classgraph.json.Id;
import lombok.Data;
import lombok.experimental.Accessors;
import org.springframework.data.elasticsearch.annotations.Document;
import org.springframework.data.elasticsearch.annotations.Field;
import org.springframework.data.elasticsearch.annotations.FieldType;

@Data
@Accessors(chain = true)
@Document(indexName = "wind_speed")
public class ESWindSpeed {
    @Id
    private Long sequenceNumber;
    @Field(type = FieldType.Text, index = false)
    private String createdTime;
    @Field(type = FieldType.Text, index = false)
    private String equipmentIndexName;
    @Field(type = FieldType.Text, index = false)
    private String equipmentNumber;
    @Field(type = FieldType.Text, index = false)
    private String gatewayId;
    @Field(type = FieldType.Double, index = false)
    private Double value;
    @Field(type = FieldType.Text, index = false)
    private String batchNo;
}
