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 final recordstatic enumstatic final recordstatic final recordstatic classRepresents a chargeable line on a bill. -
Constructor Summary
ConstructorsConstructorDescriptionBill(Bill.Id id, com.yahoo.config.provision.TenantName tenant, StatusHistory statusHistory, List<Bill.LineItem> lineItems, ZonedDateTime startTime, ZonedDateTime endTime) Bill(Bill.Id id, com.yahoo.config.provision.TenantName tenant, StatusHistory statusHistory, List<Bill.LineItem> lineItems, ZonedDateTime startTime, ZonedDateTime endTime, String exportedId) -
Method Summary
Modifier and TypeMethodDescriptionid()status()sum()summarizeBy(Bill.ItemRequest request) com.yahoo.config.provision.TenantNametenant()
-
Constructor Details
-
Bill
public Bill(Bill.Id id, com.yahoo.config.provision.TenantName tenant, StatusHistory statusHistory, List<Bill.LineItem> lineItems, ZonedDateTime startTime, ZonedDateTime endTime) -
Bill
public Bill(Bill.Id id, com.yahoo.config.provision.TenantName tenant, StatusHistory statusHistory, List<Bill.LineItem> lineItems, ZonedDateTime startTime, ZonedDateTime endTime, String exportedId)
-
-
Method Details
-
id
-
tenant
public com.yahoo.config.provision.TenantName tenant() -
status
-
statusHistory
-
lineItems
-
getStartTime
-
getEndTime
-
getExportedId
-
getStartDate
-
getEndDate
-
sum
-
sumCpuHours
-
sumMemoryHours
-
sumDiskHours
-
sumCpuCost
-
sumMemoryCost
-
sumDiskCost
-
sumGpuCost
-
sumAdditionalCost
-
summarizeBy
-