com.grafana.foundation.candlestick.CandlestickFieldMap Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of grafana-foundation-sdk Show documentation
Show all versions of grafana-foundation-sdk Show documentation
A set of tools, types and libraries for building and manipulating Grafana objects.
// Code generated - EDITING IS FUTILE. DO NOT EDIT.
package com.grafana.foundation.candlestick;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.core.JsonProcessingException;
import com.fasterxml.jackson.databind.ObjectMapper;
import com.fasterxml.jackson.databind.ObjectWriter;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
public class CandlestickFieldMap {
// Corresponds to the starting value of the given period
@JsonSerialize(include = JsonSerialize.Inclusion.NON_NULL)
@JsonProperty("open")
public String open;
// Corresponds to the highest value of the given period
@JsonSerialize(include = JsonSerialize.Inclusion.NON_NULL)
@JsonProperty("high")
public String high;
// Corresponds to the lowest value of the given period
@JsonSerialize(include = JsonSerialize.Inclusion.NON_NULL)
@JsonProperty("low")
public String low;
// Corresponds to the final (end) value of the given period
@JsonSerialize(include = JsonSerialize.Inclusion.NON_NULL)
@JsonProperty("close")
public String close;
// Corresponds to the sample count in the given period. (e.g. number of trades)
@JsonSerialize(include = JsonSerialize.Inclusion.NON_NULL)
@JsonProperty("volume")
public String volume;
public String toJSON() throws JsonProcessingException {
ObjectWriter ow = new ObjectMapper().writer().withDefaultPrettyPrinter();
return ow.writeValueAsString(this);
}
}