Class TableUsageSummary


  • @Generated(value="OracleSDKGenerator",
               comments="API Version: 20190828")
    public final class TableUsageSummary
    extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
    TableUsageSummary 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.
    Note: Objects should always be created or deserialized using the TableUsageSummary.Builder. This model distinguishes fields that are null because they are unset from fields that are explicitly set to null. This is done in the setter methods of the TableUsageSummary.Builder, which maintain a set of all explicitly set fields called TableUsageSummary.Builder.__explicitlySet__. The hashCode() and equals(Object) methods are implemented to take the explicitly set fields into account. The constructor, on the other hand, does not take the explicitly set fields into account (since the constructor cannot distinguish explicit null from unset null).

    • Constructor Detail

      • TableUsageSummary

        @Deprecated
        @ConstructorProperties({"secondsInPeriod","readUnits","writeUnits","storageInGBs","readThrottleCount","writeThrottleCount","storageThrottleCount","maxShardSizeUsageInPercent","timeStarted"})
        public TableUsageSummary​(Integer secondsInPeriod,
                                 Integer readUnits,
                                 Integer writeUnits,
                                 Integer storageInGBs,
                                 Integer readThrottleCount,
                                 Integer writeThrottleCount,
                                 Integer storageThrottleCount,
                                 Integer maxShardSizeUsageInPercent,
                                 Date timeStarted)
        Deprecated.
    • Method Detail

      • getSecondsInPeriod

        public Integer getSecondsInPeriod()
        The length of the sampling period.
        Returns:
        the value
      • getReadUnits

        public Integer getReadUnits()
        Read throughput during the sampling period.
        Returns:
        the value
      • getWriteUnits

        public Integer getWriteUnits()
        Write throughput during the sampling period.
        Returns:
        the value
      • getStorageInGBs

        public Integer getStorageInGBs()
        The size of the table, in GB.
        Returns:
        the value
      • getReadThrottleCount

        public Integer getReadThrottleCount()
        The number of times reads were throttled due to exceeding the read throughput limit.
        Returns:
        the value
      • getWriteThrottleCount

        public Integer getWriteThrottleCount()
        The number of times writes were throttled due to exceeding the write throughput limit.
        Returns:
        the value
      • getStorageThrottleCount

        public Integer getStorageThrottleCount()
        The number of times writes were throttled because the table exceeded its size limit.
        Returns:
        the value
      • getMaxShardSizeUsageInPercent

        public Integer getMaxShardSizeUsageInPercent()
        The percentage of allowed per-shard usage for the table shard with the highest usage.
        Returns:
        the value
      • getTimeStarted

        public Date getTimeStarted()
        The time stamp of this usage record.
        Returns:
        the value
      • toString

        public String toString()
        Overrides:
        toString in class com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
      • toString

        public String toString​(boolean includeByteArrayContents)
        Return a string representation of the object.
        Parameters:
        includeByteArrayContents - true to include the full contents of byte arrays
        Returns:
        string representation
      • equals

        public boolean equals​(Object o)
        Overrides:
        equals in class com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel