Java Code Examples for com.fasterxml.jackson.databind.annotation.JsonSerialize.Inclusion#NON_EMPTY

The following examples show how to use com.fasterxml.jackson.databind.annotation.JsonSerialize.Inclusion#NON_EMPTY . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: TenantDefinition.java    From hawkular-metrics with Apache License 2.0 4 votes vote down vote up
@ApiModelProperty("Retention settings for metrics, expressed in days")
@JsonProperty("retentions")
@JsonSerialize(include = Inclusion.NON_EMPTY, keyUsing = MetricTypeKeySerializer.class)
public Map<MetricType<?>, Integer> getRetentionSettings() {
    return retentionSettings;
}
 
Example 2
Source File: Metric.java    From hawkular-metrics with Apache License 2.0 4 votes vote down vote up
@ApiModelProperty("Metric tags")
@JsonSerialize(include = Inclusion.NON_EMPTY)
public Map<String, String> getTags() {
    return tags;
}
 
Example 3
Source File: Metric.java    From hawkular-metrics with Apache License 2.0 4 votes vote down vote up
@ApiModelProperty("Metric data points")
@JsonSerialize(include = Inclusion.NON_EMPTY)
public List<DataPoint<T>> getDataPoints() {
    return dataPoints;
}
 
Example 4
Source File: Metric.java    From hawkular-metrics with Apache License 2.0 4 votes vote down vote up
@ApiModelProperty("Timestamp of the metric's oldest data point")
@JsonSerialize(include = Inclusion.NON_EMPTY)
public Long getMinTimestamp() {
    return minTimestamp;
}
 
Example 5
Source File: Metric.java    From hawkular-metrics with Apache License 2.0 4 votes vote down vote up
@ApiModelProperty("Timestamp of the metric's most recent data point")
@JsonSerialize(include = Inclusion.NON_EMPTY)
public Long getMaxTimestamp() {
    return maxTimestamp;
}