Package oracle.nosql.driver.ops
Class TableUsageResult.TableUsage
java.lang.Object
oracle.nosql.driver.ops.TableUsageResult.TableUsage
- Enclosing class:
- TableUsageResult
TableUsage represents a single usage record, or slice, that includes
 information about read and write throughput consumed during that period
 as well as the current information regarding storage capacity. In
 addition the count of throttling exceptions for the period is reported.
- 
Method SummaryModifier and TypeMethodDescriptionintReturns the percentage of allowed storage usage for the shard with the highest usage percentage across all table shards.intReturns the number of read throttling exceptions on this table in the time period.intReturns the number of read uits consumed during this periodintReturns the number of seconds in this usage record.longReturns the start time for this usage record in milliseconds since the Epoch.Returns the start time as an ISO 8601 formatted string.intReturns the amount of storage consumed by the table.intReturns the number of storage throttling exceptions on this table in the time period.intReturns the number of write throttling exceptions on this table in the time period.intReturns the number of write uits consumed during this period
- 
Method Details- 
getStartTimepublic long getStartTime()Returns the start time for this usage record in milliseconds since the Epoch.- Returns:
- the start time
 
- 
getStartTimeStringReturns the start time as an ISO 8601 formatted string. If the start timestamp is not set, null is returned.- Returns:
- the start time, or null if not set.
 
- 
getSecondsInPeriodpublic int getSecondsInPeriod()Returns the number of seconds in this usage record.- Returns:
- the number of seconds
 
- 
getReadUnitspublic int getReadUnits()Returns the number of read uits consumed during this period- Returns:
- the read units
 
- 
getWriteUnitspublic int getWriteUnits()Returns the number of write uits consumed during this period- Returns:
- the write units
 
- 
getStorageGBpublic int getStorageGB()Returns the amount of storage consumed by the table. This information may be out of date as it is not maintained in real time.- Returns:
- the size in gigabytes
 
- 
getReadThrottleCountpublic int getReadThrottleCount()Returns the number of read throttling exceptions on this table in the time period.- Returns:
- the number of throttling exceptions
 
- 
getWriteThrottleCountpublic int getWriteThrottleCount()Returns the number of write throttling exceptions on this table in the time period.- Returns:
- the number of throttling exceptions
 
- 
getStorageThrottleCountpublic int getStorageThrottleCount()Returns the number of storage throttling exceptions on this table in the time period.- Returns:
- the number of throttling exceptions
 
- 
getMaxShardUsagePercentpublic int getMaxShardUsagePercent()Returns the percentage of allowed storage usage for the shard with the highest usage percentage across all table shards. This can be used as a gauge of total storage available as well as a hint for key distribution across shards.- Returns:
- the percentage
- Since:
- 5.4
 
 
-