PercentileMetricInner Class

  • java.lang.Object
    • com.azure.resourcemanager.cosmos.fluent.models.PercentileMetricInner

Implements

public final class PercentileMetricInner
implements JsonSerializable<PercentileMetricInner>

Percentile Metric data.

Method Summary

Modifier and Type Method and Description
OffsetDateTime endTime()

Get the endTime property: The end time for the metric (ISO-8601 format).

static PercentileMetricInner fromJson(JsonReader jsonReader)

Reads an instance of PercentileMetricInner from the JsonReader.

List<PercentileMetricValue> metricValues()

Get the metricValues property: The percentile metric values for the specified time window and timestep.

MetricName name()

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

OffsetDateTime startTime()

Get the startTime property: The start time for the metric (ISO-8601 format).

String timeGrain()

Get the timeGrain property: The time grain to be used to summarize the metric values.

JsonWriter toJson(JsonWriter jsonWriter)
UnitType unit()

Get the unit property: The unit of the metric.

void validate()

Validates the instance.

Methods inherited from java.lang.Object

Method Details

endTime

public OffsetDateTime endTime()

Get the endTime property: The end time for the metric (ISO-8601 format).

Returns:

the endTime value.

fromJson

public static PercentileMetricInner fromJson(JsonReader jsonReader)

Reads an instance of PercentileMetricInner from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of PercentileMetricInner 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 PercentileMetricInner.

metricValues

public List<PercentileMetricValue> metricValues()

Get the metricValues property: The percentile metric values for the specified time window and timestep.

Returns:

the metricValues value.

name

public MetricName name()

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

Returns:

the name value.

startTime

public OffsetDateTime startTime()

Get the startTime property: The start time for the metric (ISO-8601 format).

Returns:

the startTime value.

timeGrain

public String timeGrain()

Get the timeGrain property: The time grain to be used to summarize the metric values.

Returns:

the timeGrain value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

unit

public UnitType unit()

Get the unit property: The unit of the metric.

Returns:

the unit value.

validate

public void validate()

Validates the instance.

Applies to