Class PartitionUsageInner

java.lang.Object
com.azure.resourcemanager.cosmos.fluent.models.UsageInner
com.azure.resourcemanager.cosmos.fluent.models.PartitionUsageInner
All Implemented Interfaces:
com.azure.json.JsonSerializable<UsageInner>

public final class PartitionUsageInner extends UsageInner
The partition level usage data for a usage request.
  • Constructor Summary

    Constructors
    Constructor
    Description
    Creates an instance of PartitionUsageInner class.
  • Method Summary

    Modifier and Type
    Method
    Description
    Get the currentValue property: Current value for this metric.
    fromJson(com.azure.json.JsonReader jsonReader)
    Reads an instance of PartitionUsageInner from the JsonReader.
    Get the limit property: Maximum value for this metric.
    Get the name property: The name information for the metric.
    Get the partitionId property: The partition id (GUID identifier) of the usages.
    Get the partitionKeyRangeId property: The partition key range id (integer identifier) of the usages.
    Get the quotaPeriod property: The quota period used to summarize the usage values.
    com.azure.json.JsonWriter
    toJson(com.azure.json.JsonWriter jsonWriter)
    Get the unit property: The unit of the metric.
    void
    Validates the instance.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface com.azure.json.JsonSerializable

    toJson, toJson, toJsonBytes, toJsonString
  • Constructor Details

    • PartitionUsageInner

      public PartitionUsageInner()
      Creates an instance of PartitionUsageInner class.
  • Method Details

    • partitionId

      public String partitionId()
      Get the partitionId property: The partition id (GUID identifier) of the usages.
      Returns:
      the partitionId value.
    • partitionKeyRangeId

      public String partitionKeyRangeId()
      Get the partitionKeyRangeId property: The partition key range id (integer identifier) of the usages.
      Returns:
      the partitionKeyRangeId value.
    • currentValue

      public Long currentValue()
      Get the currentValue property: Current value for this metric.
      Overrides:
      currentValue in class UsageInner
      Returns:
      the currentValue value.
    • limit

      public Long limit()
      Get the limit property: Maximum value for this metric.
      Overrides:
      limit in class UsageInner
      Returns:
      the limit value.
    • quotaPeriod

      public String quotaPeriod()
      Get the quotaPeriod property: The quota period used to summarize the usage values.
      Overrides:
      quotaPeriod in class UsageInner
      Returns:
      the quotaPeriod value.
    • name

      public MetricName name()
      Get the name property: The name information for the metric.
      Overrides:
      name in class UsageInner
      Returns:
      the name value.
    • unit

      public UnitType unit()
      Get the unit property: The unit of the metric.
      Overrides:
      unit in class UsageInner
      Returns:
      the unit value.
    • validate

      public void validate()
      Validates the instance.
      Overrides:
      validate in class UsageInner
      Throws:
      IllegalArgumentException - thrown if the instance is not valid.
    • toJson

      public com.azure.json.JsonWriter toJson(com.azure.json.JsonWriter jsonWriter) throws IOException
      Specified by:
      toJson in interface com.azure.json.JsonSerializable<UsageInner>
      Overrides:
      toJson in class UsageInner
      Throws:
      IOException
    • fromJson

      public static PartitionUsageInner fromJson(com.azure.json.JsonReader jsonReader) throws IOException
      Reads an instance of PartitionUsageInner from the JsonReader.
      Parameters:
      jsonReader - The JsonReader being read.
      Returns:
      An instance of PartitionUsageInner if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.
      Throws:
      IOException - If an error occurs while reading the PartitionUsageInner.