From 7748dad9b0e15bc868bc0f30eeb12eba150b116c Mon Sep 17 00:00:00 2001 From: Ola Aunrønning Date: Wed, 8 Jan 2020 14:13:01 +0100 Subject: Allow any cluster type --- .../controller/api/application/v4/model/ClusterMetrics.java | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) (limited to 'controller-api') 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 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 - } - } -- cgit v1.2.3