blob: fddeea9ed2c3f73c3acba73d7c5c9053a00a2e94 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
|
package com.yahoo.vespa.hosted.controller.api.integration.noderepository;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.yahoo.vespa.hosted.controller.api.integration.configserver.Cluster;
/**
* @author bratseth
*/
@JsonIgnoreProperties(ignoreUnknown = true)
@JsonInclude(JsonInclude.Include.NON_NULL)
public class AutoscalingMetricsData {
@JsonProperty("queryRate")
public Double queryRate;
@JsonProperty("growthRateHeadroom")
public Double growthRateHeadroom;
@JsonProperty("cpuCostPerQuery")
public Double cpuCostPerQuery;
public Cluster.Autoscaling.Metrics toMetrics() {
return new Cluster.Autoscaling.Metrics(queryRate, growthRateHeadroom, cpuCostPerQuery);
}
}
|