diff options
author | valerijf <valerijf@yahoo-inc.com> | 2017-05-11 14:47:39 +0200 |
---|---|---|
committer | valerijf <valerijf@yahoo-inc.com> | 2017-05-11 14:47:39 +0200 |
commit | a3e3a5af779d42af8b30f74d2cb475b693c07db7 (patch) | |
tree | 4b681ce44074333e39704d2902c763b7df3fc5e6 /vespaclient-container-plugin/src/main/java/com/yahoo/documentapi | |
parent | 7c2848272593fd4dce5220bb28b17510ed40904f (diff) |
Arch. review fixes
Diffstat (limited to 'vespaclient-container-plugin/src/main/java/com/yahoo/documentapi')
2 files changed, 4 insertions, 4 deletions
diff --git a/vespaclient-container-plugin/src/main/java/com/yahoo/documentapi/metrics/DocumentApiMetricsHelper.java b/vespaclient-container-plugin/src/main/java/com/yahoo/documentapi/metrics/DocumentApiMetricsHelper.java index a082f7dba8a..154f473630e 100644 --- a/vespaclient-container-plugin/src/main/java/com/yahoo/documentapi/metrics/DocumentApiMetricsHelper.java +++ b/vespaclient-container-plugin/src/main/java/com/yahoo/documentapi/metrics/DocumentApiMetricsHelper.java @@ -30,8 +30,8 @@ public class DocumentApiMetricsHelper { } } - feeds = metricReceiver.declareCounter("feed_operations"); - feedLatency = metricReceiver.declareGauge("feed_latency"); + feeds = metricReceiver.declareCounter("feed.operations"); + feedLatency = metricReceiver.declareGauge("feed.latency"); } public void reportSuccessful(DocumentOperationType documentOperationType, double latency) { diff --git a/vespaclient-container-plugin/src/main/java/com/yahoo/documentapi/metrics/DocumentOperationStatus.java b/vespaclient-container-plugin/src/main/java/com/yahoo/documentapi/metrics/DocumentOperationStatus.java index 3ed1f42ca14..cdbaf645b6e 100644 --- a/vespaclient-container-plugin/src/main/java/com/yahoo/documentapi/metrics/DocumentOperationStatus.java +++ b/vespaclient-container-plugin/src/main/java/com/yahoo/documentapi/metrics/DocumentOperationStatus.java @@ -9,7 +9,7 @@ import java.util.Set; * @author freva */ public enum DocumentOperationStatus { - OK, CLIENT_ERROR, SERVER_ERROR; + OK, REQUEST_ERROR, SERVER_ERROR; public static DocumentOperationStatus fromHttpStatusCode(int httpStatus) { switch (httpStatus / 100) { @@ -17,7 +17,7 @@ public enum DocumentOperationStatus { return OK; case 4: - return CLIENT_ERROR; + return REQUEST_ERROR; case 5: return SERVER_ERROR; |