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