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 PartitionUsageInner
fromJson
(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.JsonWriter
toJson
(com.azure.json.JsonWriter jsonWriter) unit()
Get the unit property: The unit of the metric.void
validate()
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
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:
currentValue
in classUsageInner
- Returns:
- the currentValue value.
-
limit
Get the limit property: Maximum value for this metric.- Overrides:
limit
in classUsageInner
- Returns:
- the limit value.
-
quotaPeriod
Get the quotaPeriod property: The quota period used to summarize the usage values.- Overrides:
quotaPeriod
in classUsageInner
- Returns:
- the quotaPeriod value.
-
name
Get the name property: The name information for the metric.- Overrides:
name
in classUsageInner
- Returns:
- the name value.
-
unit
Get the unit property: The unit of the metric.- Overrides:
unit
in classUsageInner
- Returns:
- the unit value.
-
validate
public void validate()Validates the instance.- Overrides:
validate
in classUsageInner
- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-
toJson
- Specified by:
toJson
in interfacecom.azure.json.JsonSerializable<UsageInner>
- Overrides:
toJson
in 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.
-