View Javadoc
1   package de.dlr.shepard.influxDB;
2   
3   import com.fasterxml.jackson.annotation.JsonProperty;
4   
5   import io.swagger.v3.oas.annotations.media.Schema;
6   import lombok.AllArgsConstructor;
7   import lombok.Data;
8   import lombok.NoArgsConstructor;
9   
10  /**
11   * Representation of an influx data object, containing an unix-timestamp in
12   * nanoseconds and the actual influx value.
13   */
14  @Data
15  @AllArgsConstructor
16  @NoArgsConstructor
17  public class InfluxPoint {
18  
19  	@JsonProperty("timestamp")
20  	@Schema(description = "Time in nanoseconds since epoch")
21  	private long timeInNanoseconds;
22  
23  	@Schema(description = "A string, a number or a boolean")
24  	// TODO: Add anyOf = { String.class, Number.class, Boolean.class }
25  	// https://github.com/OpenAPITools/openapi-generator/issues/12556
26  	private Object value;
27  }