Partager via


MetricInner Class

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

Implements

public class MetricInner
implements JsonSerializable<MetricInner>

Metric data.

Constructor Summary

Constructor Description
MetricInner()

Creates an instance of MetricInner class.

Method Summary

Modifier and Type Method and Description
OffsetDateTime endTime()

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

static MetricInner fromJson(JsonReader jsonReader)

Reads an instance of MetricInner from the JsonReader.

List<MetricValue> metricValues()

Get the metricValues property: The 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

Constructor Details

MetricInner

public MetricInner()

Creates an instance of MetricInner class.

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 MetricInner fromJson(JsonReader jsonReader)

Reads an instance of MetricInner from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

metricValues

public List metricValues()

Get the metricValues property: The 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