com.grafana.foundation.xychart.ScatterSeriesConfig 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.xychart;
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;
import com.grafana.foundation.common.ScaleDimensionConfig;
import com.grafana.foundation.common.ColorDimensionConfig;
import com.grafana.foundation.common.LineStyle;
import com.grafana.foundation.common.VisibilityMode;
import com.grafana.foundation.common.HideSeriesConfig;
import com.grafana.foundation.common.AxisPlacement;
import com.grafana.foundation.common.AxisColorMode;
import com.grafana.foundation.common.ScaleDistributionConfig;
import com.grafana.foundation.common.TextDimensionConfig;
public class ScatterSeriesConfig {
@JsonSerialize(include = JsonSerialize.Inclusion.NON_NULL)
@JsonProperty("x")
public String x;
@JsonSerialize(include = JsonSerialize.Inclusion.NON_NULL)
@JsonProperty("y")
public String y;
@JsonSerialize(include = JsonSerialize.Inclusion.NON_NULL)
@JsonProperty("name")
public String name;
@JsonSerialize(include = JsonSerialize.Inclusion.NON_NULL)
@JsonProperty("show")
public ScatterShow show;
@JsonSerialize(include = JsonSerialize.Inclusion.NON_NULL)
@JsonProperty("pointSize")
public ScaleDimensionConfig pointSize;
@JsonSerialize(include = JsonSerialize.Inclusion.NON_NULL)
@JsonProperty("pointColor")
public ColorDimensionConfig pointColor;
@JsonSerialize(include = JsonSerialize.Inclusion.NON_NULL)
@JsonProperty("lineColor")
public ColorDimensionConfig lineColor;
@JsonSerialize(include = JsonSerialize.Inclusion.NON_NULL)
@JsonProperty("lineWidth")
public Integer lineWidth;
@JsonSerialize(include = JsonSerialize.Inclusion.NON_NULL)
@JsonProperty("lineStyle")
public LineStyle lineStyle;
@JsonSerialize(include = JsonSerialize.Inclusion.NON_NULL)
@JsonProperty("label")
public VisibilityMode label;
@JsonSerialize(include = JsonSerialize.Inclusion.NON_NULL)
@JsonProperty("hideFrom")
public HideSeriesConfig hideFrom;
@JsonSerialize(include = JsonSerialize.Inclusion.NON_NULL)
@JsonProperty("axisPlacement")
public AxisPlacement axisPlacement;
@JsonSerialize(include = JsonSerialize.Inclusion.NON_NULL)
@JsonProperty("axisColorMode")
public AxisColorMode axisColorMode;
@JsonSerialize(include = JsonSerialize.Inclusion.NON_NULL)
@JsonProperty("axisLabel")
public String axisLabel;
@JsonSerialize(include = JsonSerialize.Inclusion.NON_NULL)
@JsonProperty("axisWidth")
public Double axisWidth;
@JsonSerialize(include = JsonSerialize.Inclusion.NON_NULL)
@JsonProperty("axisSoftMin")
public Double axisSoftMin;
@JsonSerialize(include = JsonSerialize.Inclusion.NON_NULL)
@JsonProperty("axisSoftMax")
public Double axisSoftMax;
@JsonSerialize(include = JsonSerialize.Inclusion.NON_NULL)
@JsonProperty("axisGridShow")
public Boolean axisGridShow;
@JsonSerialize(include = JsonSerialize.Inclusion.NON_NULL)
@JsonProperty("scaleDistribution")
public ScaleDistributionConfig scaleDistribution;
@JsonSerialize(include = JsonSerialize.Inclusion.NON_NULL)
@JsonProperty("axisCenteredZero")
public Boolean axisCenteredZero;
@JsonSerialize(include = JsonSerialize.Inclusion.NON_NULL)
@JsonProperty("frame")
public Double frame;
@JsonSerialize(include = JsonSerialize.Inclusion.NON_NULL)
@JsonProperty("labelValue")
public TextDimensionConfig labelValue;
@JsonSerialize(include = JsonSerialize.Inclusion.NON_NULL)
@JsonProperty("axisBorderShow")
public Boolean axisBorderShow;
public String toJSON() throws JsonProcessingException {
ObjectWriter ow = new ObjectMapper().writer().withDefaultPrettyPrinter();
return ow.writeValueAsString(this);
}
}