Class NovaSimpleTenantUsage
- java.lang.Object
-
- org.openstack4j.openstack.compute.domain.NovaSimpleTenantUsage
-
- All Implemented Interfaces:
Serializable,SimpleTenantUsage,ModelEntity
public class NovaSimpleTenantUsage extends Object implements SimpleTenantUsage
Provides simple usage reporting for tenants- Author:
- Jeremy Unruh
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classNovaSimpleTenantUsage.NovaServerUsagestatic classNovaSimpleTenantUsage.NovaSimpleTenantUsagesTenant usages for all tenants wrapper-
Nested classes/interfaces inherited from interface org.openstack4j.model.compute.SimpleTenantUsage
SimpleTenantUsage.ServerUsage
-
-
Constructor Summary
Constructors Constructor Description NovaSimpleTenantUsage()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<? extends SimpleTenantUsage.ServerUsage>getServerUsages()DategetStart()DategetStop()StringgetTenantId()StringgetTotalHours()BigDecimalgetTotalLocalGbUsage()BigDecimalgetTotalMemoryMbUsage()BigDecimalgetTotalVcpusUsage()StringtoString()
-
-
-
Method Detail
-
getTotalMemoryMbUsage
public BigDecimal getTotalMemoryMbUsage()
- Specified by:
getTotalMemoryMbUsagein interfaceSimpleTenantUsage- Returns:
- the total memory usage in MB
-
getTotalVcpusUsage
public BigDecimal getTotalVcpusUsage()
- Specified by:
getTotalVcpusUsagein interfaceSimpleTenantUsage- Returns:
- the total Virtual CPU Usage
-
getTotalLocalGbUsage
public BigDecimal getTotalLocalGbUsage()
- Specified by:
getTotalLocalGbUsagein interfaceSimpleTenantUsage- Returns:
- the total local GB of data used
-
getStart
public Date getStart()
- Specified by:
getStartin interfaceSimpleTenantUsage- Returns:
- the start date/time
-
getStop
public Date getStop()
- Specified by:
getStopin interfaceSimpleTenantUsage- Returns:
- the stop date/time
-
getTenantId
public String getTenantId()
- Specified by:
getTenantIdin interfaceSimpleTenantUsage- Returns:
- the tenant the usage is reporting againt
-
getTotalHours
public String getTotalHours()
- Specified by:
getTotalHoursin interfaceSimpleTenantUsage- Returns:
- the total hours of usage
-
getServerUsages
public List<? extends SimpleTenantUsage.ServerUsage> getServerUsages()
- Specified by:
getServerUsagesin interfaceSimpleTenantUsage- Returns:
- the list of usages per tenant server (Null when query was against all tenants)
-
-