Added json getter method for reports
// Copyright 2018 Yahoo Holdings. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
package com.yahoo.vespa.hosted.controller.api.integration.noderepository;
+import com.fasterxml.jackson.annotation.JsonGetter;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.annotation.JsonInclude;
@@ -363,6 +364,9 @@ public class NodeRepositoryNode {
return reports == null ? Map.of() : reports;
}
+ @JsonGetter("reports")
+ public Map<String, JsonNode> getReportsOrNull() { return reports; }
+
public void setReports(Map<String, JsonNode> reports) {
this.reports = reports;
}
