Skip to content

Commit

Permalink
The 'metricType' field is no longer sent as part of H Metric's Single…
Browse files Browse the repository at this point in the history
…Metric,

removing for compatibility.
  • Loading branch information
jshaughn committed Feb 24, 2015
1 parent 3dda95f commit d31a5f6
Showing 1 changed file with 2 additions and 14 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -91,17 +91,14 @@ public static class SingleMetric {
private long timestamp;
@Expose
private double value;
@Expose
private int metricType;

public SingleMetric() {
}

public SingleMetric(String source, long timestamp, double value, int type) {
public SingleMetric(String source, long timestamp, double value) {
this.source = source;
this.timestamp = timestamp;
this.value = value;
this.metricType = type;
}

public String getSource() {
Expand All @@ -128,18 +125,9 @@ public void setValue(double value) {
this.value = value;
}

public int getMetricType() {
return metricType;
}

public void setMetricType(int type) {
this.metricType = type;
}

@Override
public String toString() {
return "SingleMetric [source=" + source + ", timestamp=" + timestamp + ", value=" + value
+ ", metricType=" + metricType + "]";
return "SingleMetric [source=" + source + ", timestamp=" + timestamp + ", value=" + value + "]";
}
}
}

0 comments on commit d31a5f6

Please sign in to comment.