Package org.openstack4j.model.compute
Interface SimpleTenantUsage
-
- All Superinterfaces:
ModelEntity,Serializable
- All Known Implementing Classes:
NovaSimpleTenantUsage
public interface SimpleTenantUsage extends ModelEntity
Provides simple usage reporting for tenants- Author:
- Jeremy Unruh
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static interfaceSimpleTenantUsage.ServerUsage
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description List<? extends SimpleTenantUsage.ServerUsage>getServerUsages()DategetStart()DategetStop()StringgetTenantId()StringgetTotalHours()BigDecimalgetTotalLocalGbUsage()BigDecimalgetTotalMemoryMbUsage()BigDecimalgetTotalVcpusUsage()
-
-
-
Method Detail
-
getTotalMemoryMbUsage
BigDecimal getTotalMemoryMbUsage()
- Returns:
- the total memory usage in MB
-
getTotalVcpusUsage
BigDecimal getTotalVcpusUsage()
- Returns:
- the total Virtual CPU Usage
-
getTotalLocalGbUsage
BigDecimal getTotalLocalGbUsage()
- Returns:
- the total local GB of data used
-
getStart
Date getStart()
- Returns:
- the start date/time
-
getStop
Date getStop()
- Returns:
- the stop date/time
-
getTenantId
String getTenantId()
- Returns:
- the tenant the usage is reporting againt
-
getTotalHours
String getTotalHours()
- Returns:
- the total hours of usage
-
getServerUsages
List<? extends SimpleTenantUsage.ServerUsage> getServerUsages()
- Returns:
- the list of usages per tenant server (Null when query was against all tenants)
-
-