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