All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.satori.composer.ddog.DdogSeries Maven / Gradle / Ivy

There is a newer version: 0.1.7
Show newest version
package com.satori.composer.ddog;

import com.fasterxml.jackson.annotation.*;

@JsonInclude(JsonInclude.Include.NON_DEFAULT)
public class DdogSeries extends DdogExt {
  
  public final static DdogSeries[] EMPTY_ARRAY = new DdogSeries[0];

  public static DdogSeries[] createArray(int size) {
    if (size <= 0) {
      return EMPTY_ARRAY;
    }
    return new DdogSeries[size];
  }
  
  public DdogSeries() {
  }
  
  public DdogSeries(String metric, String type, String host, String[] tags, float value, double epoch) {
    this.metric = metric;
    this.type = type;
    this.host = host;
    this.tags = tags;
    points = new Object[][]{
      {epoch, value}
    };
  }
  
  @JsonProperty("metric")
  public String metric = null;
  
  @JsonProperty("type")
  public String type = null;
  
  @JsonProperty("host")
  public String host = null;
  
  @JsonProperty("tags")
  public String[] tags = null;
  
  
  @JsonProperty("interval")
  public float interval = Float.NaN;
  
  @JsonProperty("points")
  public Object[][] points = null;
  
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy