PartitionMetricInner Class
- java.
lang. Object - com.
azure. resourcemanager. cosmos. fluent. models. MetricInner - com.
azure. resourcemanager. cosmos. fluent. models. PartitionMetricInner
- com.
- com.
public final class PartitionMetricInner
extends MetricInner
The metric values for a single partition.
Constructor Summary
Constructor | Description |
---|---|
PartitionMetricInner() |
Creates an instance of Partition |
Method Summary
Modifier and Type | Method and Description |
---|---|
Offset |
endTime()
Get the end |
static
Partition |
fromJson(JsonReader jsonReader)
Reads an instance of Partition |
List<Metric |
metricValues()
Get the metric |
Metric |
name()
Get the name property: The name information for the metric. |
String |
partitionId()
Get the partition |
String |
partitionKeyRangeId()
Get the partition |
Offset |
startTime()
Get the start |
String |
timeGrain()
Get the time |
Json |
toJson(JsonWriter jsonWriter) |
Unit |
unit()
Get the unit property: The unit of the metric. |
void |
validate()
Validates the instance. |
Methods inherited from MetricInner
Methods inherited from java.lang.Object
Constructor Details
PartitionMetricInner
public PartitionMetricInner()
Creates an instance of PartitionMetricInner class.
Method Details
endTime
public OffsetDateTime endTime()
Get the endTime property: The end time for the metric (ISO-8601 format).
Overrides:
PartitionMetricInner.endTime()Returns:
fromJson
public static PartitionMetricInner fromJson(JsonReader jsonReader)
Reads an instance of PartitionMetricInner from the JsonReader.
Parameters:
Returns:
Throws:
metricValues
public List
Get the metricValues property: The metric values for the specified time window and timestep.
Overrides:
PartitionMetricInner.metricValues()Returns:
name
public MetricName name()
Get the name property: The name information for the metric.
Overrides:
PartitionMetricInner.name()Returns:
partitionId
public String partitionId()
Get the partitionId property: The partition id (GUID identifier) of the metric values.
Returns:
partitionKeyRangeId
public String partitionKeyRangeId()
Get the partitionKeyRangeId property: The partition key range id (integer identifier) of the metric values.
Returns:
startTime
public OffsetDateTime startTime()
Get the startTime property: The start time for the metric (ISO-8601 format).
Overrides:
PartitionMetricInner.startTime()Returns:
timeGrain
public String timeGrain()
Get the timeGrain property: The time grain to be used to summarize the metric values.
Overrides:
PartitionMetricInner.timeGrain()Returns:
toJson
public JsonWriter toJson(JsonWriter jsonWriter)
Overrides:
PartitionMetricInner.toJson(JsonWriter jsonWriter)Parameters:
Throws:
unit
public UnitType unit()
Get the unit property: The unit of the metric.
Overrides:
PartitionMetricInner.unit()Returns:
validate
public void validate()
Validates the instance.
Overrides:
PartitionMetricInner.validate()Applies to
Azure SDK for Java