changeset 1124:83c771436e55

GenericMetric.toString
author Devel 2
date Fri, 05 Jun 2020 09:41:55 +0200
parents 9517e4cb9bd7
children 4c188c94dff0
files stress-tester/src/main/java/com/passus/st/client/GenericMetric.java
diffstat 1 files changed, 13 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/stress-tester/src/main/java/com/passus/st/client/GenericMetric.java	Fri Jun 05 09:41:41 2020 +0200
+++ b/stress-tester/src/main/java/com/passus/st/client/GenericMetric.java	Fri Jun 05 09:41:55 2020 +0200
@@ -83,6 +83,18 @@
 
     }
 
+    @Override
+    public String toString() {
+        StringBuilder sb = new StringBuilder();
+        sb.append("Metric{");
+        sb.append("name=" + getName());
 
-
+        Map<String, Serializable> values = getAttributesValue();
+        values.forEach((n, v) -> {
+            sb.append(", ");
+            sb.append(n).append("=").append(v);
+        });
+        sb.append("}");
+        return sb.toString();
+    }
 }