View Javadoc
1   package de.dlr.shepard.data.timeseries.model;
2   
3   import com.fasterxml.jackson.annotation.JsonProperty;
4   import lombok.Data;
5   import org.eclipse.microprofile.openapi.annotations.media.Schema;
6   
7   @Data
8   public class TimeseriesDataPoint {
9   
10    @JsonProperty("timestamp")
11    @Schema(description = "Time in nanoseconds since unix epoch.")
12    private long timestamp;
13  
14    @Schema(description = "A string, an int, a double or a boolean")
15    private Object value;
16  
17    public TimeseriesDataPoint(long timestamp, Object value) {
18      this.timestamp = timestamp;
19      this.value = value;
20    }
21  }