diff options
author | Jon Bratseth <bratseth@gmail.com> | 2023-02-15 19:31:32 +0100 |
---|---|---|
committer | Jon Bratseth <bratseth@gmail.com> | 2023-02-15 19:31:32 +0100 |
commit | 288af4201cdd7e00d6a0f0242c1295b333bd44ab (patch) | |
tree | 64ec820cde183f4f9da13a5119e20dac706a91e9 /controller-api | |
parent | 4c9206d8119d1131e248419c7e1ba669c396b89b (diff) |
Maintain deploymentInfo
Diffstat (limited to 'controller-api')
-rw-r--r-- | controller-api/src/main/java/com/yahoo/vespa/hosted/controller/api/integration/noderepository/ApplicationPatch.java | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/controller-api/src/main/java/com/yahoo/vespa/hosted/controller/api/integration/noderepository/ApplicationPatch.java b/controller-api/src/main/java/com/yahoo/vespa/hosted/controller/api/integration/noderepository/ApplicationPatch.java index ca1736a86de..4bfd592443b 100644 --- a/controller-api/src/main/java/com/yahoo/vespa/hosted/controller/api/integration/noderepository/ApplicationPatch.java +++ b/controller-api/src/main/java/com/yahoo/vespa/hosted/controller/api/integration/noderepository/ApplicationPatch.java @@ -5,7 +5,7 @@ import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import java.util.HashMap; +import java.util.LinkedHashMap; import java.util.Map; /** @@ -24,7 +24,7 @@ public class ApplicationPatch { public Double maxReadShare; @JsonProperty("clusters") - public Map<String, ClusterPatch> clusters = new HashMap<>(); + public Map<String, ClusterPatch> clusters = new LinkedHashMap<>(); public static class ClusterPatch { @@ -48,7 +48,9 @@ public class ApplicationPatch { @JsonProperty("cpuCostPerQuery") public Double cpuCostPerQuery; - public BcpGroupInfo(double queryRate, double growthRateHeadroom, double cpuCostPerQuery) { + public BcpGroupInfo(@JsonProperty("queryRate")double queryRate, + @JsonProperty("growthRateHeadroom")double growthRateHeadroom, + @JsonProperty("cpuCostPerQuery")double cpuCostPerQuery) { this.queryRate = queryRate; this.growthRateHeadroom = growthRateHeadroom; this.cpuCostPerQuery = cpuCostPerQuery; |