diff options
author | Ola Aunrønning <olaa@verizonmedia.com> | 2020-01-08 14:13:01 +0100 |
---|---|---|
committer | Ola Aunrønning <olaa@verizonmedia.com> | 2020-01-08 14:13:01 +0100 |
commit | 7748dad9b0e15bc868bc0f30eeb12eba150b116c (patch) | |
tree | 63bc08858e715ee31ebaf407ff0c3b519e47275d /controller-api | |
parent | 81e96f8b51dd1034f5ba1a72165202d4e15db2d5 (diff) |
Allow any cluster type
Diffstat (limited to 'controller-api')
-rw-r--r-- | controller-api/src/main/java/com/yahoo/vespa/hosted/controller/api/application/v4/model/ClusterMetrics.java | 11 |
1 files changed, 3 insertions, 8 deletions
diff --git a/controller-api/src/main/java/com/yahoo/vespa/hosted/controller/api/application/v4/model/ClusterMetrics.java b/controller-api/src/main/java/com/yahoo/vespa/hosted/controller/api/application/v4/model/ClusterMetrics.java index 9296e144bf7..f16e2e403ed 100644 --- a/controller-api/src/main/java/com/yahoo/vespa/hosted/controller/api/application/v4/model/ClusterMetrics.java +++ b/controller-api/src/main/java/com/yahoo/vespa/hosted/controller/api/application/v4/model/ClusterMetrics.java @@ -18,10 +18,10 @@ public class ClusterMetrics { public static final String QUERY_LATENCY = "queryLatency"; private final String clusterId; - private final ClusterType clusterType; + private final String clusterType; private final Map<String, Double> metrics; - public ClusterMetrics(String clusterId, ClusterType clusterType) { + public ClusterMetrics(String clusterId, String clusterType) { this.clusterId = clusterId; this.clusterType = clusterType; this.metrics = new HashMap<>(); @@ -31,7 +31,7 @@ public class ClusterMetrics { return clusterId; } - public ClusterType getClusterType() { + public String getClusterType() { return clusterType; } @@ -60,9 +60,4 @@ public class ClusterMetrics { return this; } - public enum ClusterType { - content, - container - } - } |