Partilhar via


PartitionUsageInner Class

public final class PartitionUsageInner
extends UsageInner

The partition level usage data for a usage request.

Constructor Summary

Constructor Description
PartitionUsageInner()

Creates an instance of PartitionUsageInner class.

Method Summary

Modifier and Type Method and Description
Long currentValue()

Get the currentValue property: Current value for this metric.

static PartitionUsageInner fromJson(JsonReader jsonReader)

Reads an instance of PartitionUsageInner from the JsonReader.

Long limit()

Get the limit property: Maximum value for this metric.

MetricName name()

Get the name property: The name information for the metric.

String partitionId()

Get the partitionId property: The partition id (GUID identifier) of the usages.

String partitionKeyRangeId()

Get the partitionKeyRangeId property: The partition key range id (integer identifier) of the usages.

String quotaPeriod()

Get the quotaPeriod property: The quota period used to summarize the usage values.

JsonWriter toJson(JsonWriter jsonWriter)
UnitType unit()

Get the unit property: The unit of the metric.

void validate()

Validates the instance.

Methods inherited from UsageInner

Methods inherited from java.lang.Object

Constructor Details

PartitionUsageInner

public PartitionUsageInner()

Creates an instance of PartitionUsageInner class.

Method Details

currentValue

public Long currentValue()

Get the currentValue property: Current value for this metric.

Overrides:

PartitionUsageInner.currentValue()

Returns:

the currentValue value.

fromJson

public static PartitionUsageInner fromJson(JsonReader jsonReader)

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.

limit

public Long limit()

Get the limit property: Maximum value for this metric.

Overrides:

PartitionUsageInner.limit()

Returns:

the limit value.

name

public MetricName name()

Get the name property: The name information for the metric.

Overrides:

PartitionUsageInner.name()

Returns:

the name value.

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.

quotaPeriod

public String quotaPeriod()

Get the quotaPeriod property: The quota period used to summarize the usage values.

Overrides:

PartitionUsageInner.quotaPeriod()

Returns:

the quotaPeriod value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Overrides:

PartitionUsageInner.toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

unit

public UnitType unit()

Get the unit property: The unit of the metric.

Overrides:

PartitionUsageInner.unit()

Returns:

the unit value.

validate

public void validate()

Validates the instance.

Overrides:

PartitionUsageInner.validate()

Applies to