From e617de54c85a2de134bea796751a93b12d8e4fdb Mon Sep 17 00:00:00 2001 From: Dave Syer Date: Thu, 11 Nov 2010 14:24:05 +0000 Subject: [PATCH] INT-1420: add units to metric descriptions --- .../integration/monitor/MessageChannelMetrics.java | 12 ++++++------ .../integration/monitor/MessageHandlerMetrics.java | 10 +++++----- .../integration/monitor/PollableChannelMetrics.java | 4 ++-- 3 files changed, 13 insertions(+), 13 deletions(-) diff --git a/spring-integration-jmx/src/main/java/org/springframework/integration/monitor/MessageChannelMetrics.java b/spring-integration-jmx/src/main/java/org/springframework/integration/monitor/MessageChannelMetrics.java index 51c04335d6..703893f09c 100644 --- a/spring-integration-jmx/src/main/java/org/springframework/integration/monitor/MessageChannelMetrics.java +++ b/spring-integration-jmx/src/main/java/org/springframework/integration/monitor/MessageChannelMetrics.java @@ -36,13 +36,13 @@ public interface MessageChannelMetrics { /** * @return the number of successful sends */ - @ManagedMetric(metricType = MetricType.COUNTER, displayName = "MessageChannel Sends") + @ManagedMetric(metricType = MetricType.COUNTER, displayName = "MessageChannel Send Count") int getSendCount(); /** * @return the number of failed sends (either throwing an exception or rejected by the channel) */ - @ManagedMetric(metricType = MetricType.COUNTER, displayName = "MessageChannel Send Errors") + @ManagedMetric(metricType = MetricType.COUNTER, displayName = "MessageChannel Send Error Count") int getSendErrorCount(); /** @@ -72,25 +72,25 @@ public interface MessageChannelMetrics { /** * @return the mean send duration (milliseconds) */ - @ManagedMetric(metricType = MetricType.GAUGE, displayName = "Channel Send Mean Duration") + @ManagedMetric(metricType = MetricType.GAUGE, displayName = "Channel Send Mean Duration in Milliseconds") double getMeanSendDuration(); /** * @return the minimum send duration (milliseconds) since startup */ - @ManagedMetric(metricType = MetricType.GAUGE, displayName = "Channel Send Min Duration") + @ManagedMetric(metricType = MetricType.GAUGE, displayName = "Channel Send Min Duration in Milliseconds") double getMinSendDuration(); /** * @return the maximum send duration (milliseconds) since startup */ - @ManagedMetric(metricType = MetricType.GAUGE, displayName = "Channel Send Max Duration") + @ManagedMetric(metricType = MetricType.GAUGE, displayName = "Channel Send Max Duration in Milliseconds") double getMaxSendDuration(); /** * @return the standard deviation send duration (milliseconds) */ - @ManagedMetric(metricType = MetricType.GAUGE, displayName = "Channel Send Standard Deviation Duration") + @ManagedMetric(metricType = MetricType.GAUGE, displayName = "Channel Send Standard Deviation Duration in Milliseconds") double getStandardDeviationSendDuration(); /** diff --git a/spring-integration-jmx/src/main/java/org/springframework/integration/monitor/MessageHandlerMetrics.java b/spring-integration-jmx/src/main/java/org/springframework/integration/monitor/MessageHandlerMetrics.java index 30006df772..b62bc95232 100644 --- a/spring-integration-jmx/src/main/java/org/springframework/integration/monitor/MessageHandlerMetrics.java +++ b/spring-integration-jmx/src/main/java/org/springframework/integration/monitor/MessageHandlerMetrics.java @@ -44,25 +44,25 @@ public interface MessageHandlerMetrics { /** * @return the maximum handler duration (milliseconds) */ - @ManagedMetric(metricType = MetricType.GAUGE, displayName = "Handler Mean Duration (ms)") + @ManagedMetric(metricType = MetricType.GAUGE, displayName = "Handler Mean Duration in Milliseconds") double getMeanDuration(); /** * @return the minimum handler duration (milliseconds) */ - @ManagedMetric(metricType = MetricType.GAUGE, displayName = "Handler Min Duration (ms)") + @ManagedMetric(metricType = MetricType.GAUGE, displayName = "Handler Min Duration in Milliseconds") double getMinDuration(); /** * @return the standard deviation handler duration (milliseconds) */ - @ManagedMetric(metricType = MetricType.GAUGE, displayName = "Handler Max Duration (ms)") + @ManagedMetric(metricType = MetricType.GAUGE, displayName = "Handler Max Duration in Milliseconds") double getMaxDuration(); - @ManagedMetric(metricType = MetricType.GAUGE, displayName = "Handler Standard Deviation Duration (ms)") + @ManagedMetric(metricType = MetricType.GAUGE, displayName = "Handler Standard Deviation Duration in Milliseconds") double getStandardDeviationDuration(); - @ManagedMetric(metricType = MetricType.GAUGE, displayName = "Handler Active Count") + @ManagedMetric(metricType = MetricType.GAUGE, displayName = "Handler Active Execution Count") int getActiveCount(); /** diff --git a/spring-integration-jmx/src/main/java/org/springframework/integration/monitor/PollableChannelMetrics.java b/spring-integration-jmx/src/main/java/org/springframework/integration/monitor/PollableChannelMetrics.java index d6731dbef8..63fc62df91 100644 --- a/spring-integration-jmx/src/main/java/org/springframework/integration/monitor/PollableChannelMetrics.java +++ b/spring-integration-jmx/src/main/java/org/springframework/integration/monitor/PollableChannelMetrics.java @@ -75,12 +75,12 @@ public class PollableChannelMetrics extends DirectChannelMetrics { receiveCount.set(0); } - @ManagedMetric(metricType = MetricType.COUNTER, displayName = "MessageChannel Receives") + @ManagedMetric(metricType = MetricType.COUNTER, displayName = "MessageChannel Receive Count") public int getReceiveCount() { return receiveCount.get(); } - @ManagedMetric(metricType = MetricType.COUNTER, displayName = "MessageChannel Receive Errors") + @ManagedMetric(metricType = MetricType.COUNTER, displayName = "MessageChannel Receive Error Count") public int getReceiveErrorCount() { return receiveErrorCount.get(); }