Class Bill
java.lang.Object
com.yahoo.vespa.hosted.controller.api.integration.billing.Bill
An Bill is an identifier with a status (with history) and line items. A line item is the meat and
potatoes of the content of the bill, and are a history of items. Most line items are connected to
a given deployment in Vespa Cloud, but they can also be manually added to e.g. give a discount or represent
support.
All line items have a Plan associated with them - which was used to map from utilization to an actual price.
The bill has a status history, but only the latest status is exposed through this API.
- Author:
- ogronnesby
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classstatic classRepresents a chargeable line on a bill.static class -
Constructor Summary
ConstructorsConstructorDescriptionBill(Bill.Id id, com.yahoo.config.provision.TenantName tenant, Bill.StatusHistory statusHistory, List<Bill.LineItem> lineItems, ZonedDateTime startTime, ZonedDateTime endTime) -
Method Summary
-
Constructor Details
-
Bill
public Bill(Bill.Id id, com.yahoo.config.provision.TenantName tenant, Bill.StatusHistory statusHistory, List<Bill.LineItem> lineItems, ZonedDateTime startTime, ZonedDateTime endTime)
-
-
Method Details
-
id
-
tenant
public com.yahoo.config.provision.TenantName tenant() -
status
-
statusHistory
-
lineItems
-
getStartTime
-
getEndTime
-
getStartDate
-
getEndDate
-
sum
-
sumCpuHours
-
sumMemoryHours
-
sumDiskHours
-
sumCpuCost
-
sumMemoryCost
-
sumDiskCost
-
sumAdditionalCost
-