16 package org.openkilda.messaging.info;
18 import static com.google.common.base.MoreObjects.toStringHelper;
20 import com.fasterxml.jackson.annotation.JsonCreator;
21 import com.fasterxml.jackson.annotation.JsonInclude;
22 import com.fasterxml.jackson.annotation.JsonProperty;
23 import com.fasterxml.jackson.databind.annotation.JsonSerialize;
26 import java.util.Objects;
29 @JsonInclude(JsonInclude.Include.NON_NULL)
35 @JsonProperty(
"metric")
36 private String metric;
48 private Map<String, String> tags;
53 @JsonProperty(
"value")
60 public Datapoint(@JsonProperty(
"metric") String metric,
61 @JsonProperty(
"time") Long time,
62 @JsonProperty(
"tags") Map<String, String> tags,
63 @JsonProperty(
"value") Number
value) {
90 public void setTags(Map<String, String> tags) {
107 if (o == null || getClass() != o.getClass()) {
113 && Objects.equals(tags, datapoint.
getTags())
119 int result = metric != null ? metric.hashCode() : 0;
120 result = 31 *
result + (tags != null ? tags.hashCode() : 0);
126 int result = metric != null ? metric.hashCode() : 0;
127 result = 31 *
result + (tags != null ? tags.hashCode() : 0);
133 return toStringHelper(
this)
134 .add(
"metric", metric)
void setTags(Map< String, String > tags)
Map< String, String > getTags()
void setMetric(String metric)
void setValue(Number value)
Datapoint(@JsonProperty("metric") String metric, @JsonProperty("time") Long time, @JsonProperty("tags") Map< String, String > tags, @JsonProperty("value") Number value)