From d31a5f60ce3c2cf58c9d546e1874a2cabd71b7f6 Mon Sep 17 00:00:00 2001 From: Jay Shaughnessy Date: Tue, 24 Feb 2015 09:14:53 -0500 Subject: [PATCH] The 'metricType' field is no longer sent as part of H Metric's SingleMetric, removing for compatibility. --- .../alerts/bus/messages/MetricDataMessage.java | 16 ++-------------- 1 file changed, 2 insertions(+), 14 deletions(-) diff --git a/hawkular-alerts-bus/src/main/java/org/hawkular/alerts/bus/messages/MetricDataMessage.java b/hawkular-alerts-bus/src/main/java/org/hawkular/alerts/bus/messages/MetricDataMessage.java index e54d50100..792cf7f83 100644 --- a/hawkular-alerts-bus/src/main/java/org/hawkular/alerts/bus/messages/MetricDataMessage.java +++ b/hawkular-alerts-bus/src/main/java/org/hawkular/alerts/bus/messages/MetricDataMessage.java @@ -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() { @@ -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 + "]"; } } }