diff options
author | Leandro Alves <ldalves@gmail.com> | 2017-09-22 13:27:25 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-09-22 13:27:25 +0200 |
commit | 87d4f61947b51b969e2c7219bb957868def958c9 (patch) | |
tree | 0fc6c8c877b762f1e3af8bf776ad5f15505d33e4 /controller-server | |
parent | 04a72cd36e8b1163acfc02df6fd7348600687839 (diff) | |
parent | d98eca3239d8d531dcb93504daeee2c01190ee2f (diff) |
Merge pull request #3487 from vespa-engine/ldalves/cost-metrics
adds cluster cost metrics class
Diffstat (limited to 'controller-server')
-rw-r--r-- | controller-server/src/test/java/com/yahoo/vespa/hosted/controller/integration/MockMetricsService.java | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/controller-server/src/test/java/com/yahoo/vespa/hosted/controller/integration/MockMetricsService.java b/controller-server/src/test/java/com/yahoo/vespa/hosted/controller/integration/MockMetricsService.java index 360fd8616d3..79b4c5f6d6a 100644 --- a/controller-server/src/test/java/com/yahoo/vespa/hosted/controller/integration/MockMetricsService.java +++ b/controller-server/src/test/java/com/yahoo/vespa/hosted/controller/integration/MockMetricsService.java @@ -4,6 +4,9 @@ package com.yahoo.vespa.hosted.controller.integration; import com.yahoo.config.provision.ApplicationId; import com.yahoo.config.provision.Zone; +import java.util.Collections; +import java.util.List; + /** * @author bratseth */ @@ -19,4 +22,11 @@ public class MockMetricsService implements com.yahoo.vespa.hosted.controller.api return new DeploymentMetrics(1, 2, 3, 4, 5); } + @Override + public List<ClusterCostMetrics> getClusterCostMetrics(ApplicationId application, Zone zone) { + CostMetrics costMetrics = new CostMetrics(55.54, 69.90, 34.59); + ClusterCostMetrics clusterCostMetrics = new ClusterCostMetrics("default", costMetrics); + return Collections.singletonList(clusterCostMetrics); + } + } |