Class Bill
- java.lang.Object
-
- com.yahoo.vespa.hosted.controller.api.integration.billing.Bill
-
public class Bill extends Object
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 Classes Modifier and Type Class Description static classBill.Idstatic classBill.LineItemRepresents a chargeable line on a bill.static classBill.StatusHistory
-
Constructor Summary
Constructors Constructor Description Bill(Bill.Id id, com.yahoo.config.provision.TenantName tenant, Bill.StatusHistory statusHistory, List<Bill.LineItem> lineItems, ZonedDateTime startTime, ZonedDateTime endTime)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description LocalDategetEndDate()ZonedDateTimegetEndTime()LocalDategetStartDate()ZonedDateTimegetStartTime()Bill.Idid()List<Bill.LineItem>lineItems()Stringstatus()Bill.StatusHistorystatusHistory()BigDecimalsum()BigDecimalsumAdditionalCost()BigDecimalsumCpuCost()BigDecimalsumCpuHours()BigDecimalsumDiskCost()BigDecimalsumDiskHours()BigDecimalsumMemoryCost()BigDecimalsumMemoryHours()com.yahoo.config.provision.TenantNametenant()
-
-
-
Constructor Detail
-
Bill
public Bill(Bill.Id id, com.yahoo.config.provision.TenantName tenant, Bill.StatusHistory statusHistory, List<Bill.LineItem> lineItems, ZonedDateTime startTime, ZonedDateTime endTime)
-
-
Method Detail
-
id
public Bill.Id id()
-
tenant
public com.yahoo.config.provision.TenantName tenant()
-
status
public String status()
-
statusHistory
public Bill.StatusHistory statusHistory()
-
lineItems
public List<Bill.LineItem> lineItems()
-
getStartTime
public ZonedDateTime getStartTime()
-
getEndTime
public ZonedDateTime getEndTime()
-
getStartDate
public LocalDate getStartDate()
-
getEndDate
public LocalDate getEndDate()
-
sum
public BigDecimal sum()
-
sumCpuHours
public BigDecimal sumCpuHours()
-
sumMemoryHours
public BigDecimal sumMemoryHours()
-
sumDiskHours
public BigDecimal sumDiskHours()
-
sumCpuCost
public BigDecimal sumCpuCost()
-
sumMemoryCost
public BigDecimal sumMemoryCost()
-
sumDiskCost
public BigDecimal sumDiskCost()
-
sumAdditionalCost
public BigDecimal sumAdditionalCost()
-
-