com.grafana.foundation.logs.Options 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.logs;
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.grafana.foundation.common.LogsSortOrder;
import com.grafana.foundation.common.LogsDedupStrategy;
public class Options {
@JsonProperty("showLabels")
public Boolean showLabels;
@JsonProperty("showCommonLabels")
public Boolean showCommonLabels;
@JsonProperty("showTime")
public Boolean showTime;
@JsonProperty("wrapLogMessage")
public Boolean wrapLogMessage;
@JsonProperty("prettifyLogMessage")
public Boolean prettifyLogMessage;
@JsonProperty("enableLogDetails")
public Boolean enableLogDetails;
@JsonProperty("sortOrder")
public LogsSortOrder sortOrder;
@JsonProperty("dedupStrategy")
public LogsDedupStrategy dedupStrategy;
public String toJSON() throws JsonProcessingException {
ObjectWriter ow = new ObjectMapper().writer().withDefaultPrettyPrinter();
return ow.writeValueAsString(this);
}
}