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>
The partition level usage data for a usage request.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the currentValue property: Current value for this metric.static PartitionUsageInnerfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of PartitionUsageInner from the JsonReader.limit()Get the limit property: Maximum value for this metric.name()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.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) unit()Get the unit property: The unit of the metric.voidvalidate()Validates the instance.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods 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
Get the partitionId property: The partition id (GUID identifier) of the usages.- Returns:
- the partitionId value.
-
partitionKeyRangeId
Get the partitionKeyRangeId property: The partition key range id (integer identifier) of the usages.- Returns:
- the partitionKeyRangeId value.
-
currentValue
Get the currentValue property: Current value for this metric.- Overrides:
currentValuein classUsageInner- Returns:
- the currentValue value.
-
limit
Get the limit property: Maximum value for this metric.- Overrides:
limitin classUsageInner- Returns:
- the limit value.
-
quotaPeriod
Get the quotaPeriod property: The quota period used to summarize the usage values.- Overrides:
quotaPeriodin classUsageInner- Returns:
- the quotaPeriod value.
-
name
Get the name property: The name information for the metric.- Overrides:
namein classUsageInner- Returns:
- the name value.
-
unit
Get the unit property: The unit of the metric.- Overrides:
unitin classUsageInner- Returns:
- the unit value.
-
validate
public void validate()Validates the instance.- Overrides:
validatein classUsageInner- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<UsageInner>- Overrides:
toJsonin classUsageInner- Throws:
IOException
-
fromJson
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.
-