diff options
-rw-r--r-- | controller-api/src/main/java/com/yahoo/vespa/hosted/controller/api/integration/resource/TenantCost.java | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/controller-api/src/main/java/com/yahoo/vespa/hosted/controller/api/integration/resource/TenantCost.java b/controller-api/src/main/java/com/yahoo/vespa/hosted/controller/api/integration/resource/TenantCost.java index f9b7aaabcdc..b4ca0cd7076 100644 --- a/controller-api/src/main/java/com/yahoo/vespa/hosted/controller/api/integration/resource/TenantCost.java +++ b/controller-api/src/main/java/com/yahoo/vespa/hosted/controller/api/integration/resource/TenantCost.java @@ -5,6 +5,7 @@ import com.yahoo.config.provision.TenantName; import java.time.LocalDate; import java.time.YearMonth; +import java.util.Collections; import java.util.List; import java.util.Set; @@ -16,4 +17,18 @@ public interface TenantCost { Set<YearMonth> monthsWithMetering(TenantName tenantName); List<CostInfo> getTenantCostOfMonth(TenantName tenantName, YearMonth month); + + static TenantCost empty() { + return new TenantCost() { + @Override + public Set<YearMonth> monthsWithMetering(TenantName tenantName) { + return Collections.emptySet(); + } + + @Override + public List<CostInfo> getTenantCostOfMonth(TenantName tenantName, YearMonth month) { + return Collections.emptyList(); + } + }; + } } |