MetricAvailability Class

  • java.lang.Object
    • com.azure.resourcemanager.cosmos.models.MetricAvailability

Implements

public final class MetricAvailability
implements JsonSerializable<MetricAvailability>

The availability of the metric.

Method Summary

Modifier and Type Method and Description
static MetricAvailability fromJson(JsonReader jsonReader)

Reads an instance of MetricAvailability from the JsonReader.

String retention()

Get the retention property: The retention for the metric values.

String timeGrain()

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

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

Methods inherited from java.lang.Object

Method Details

fromJson

public static MetricAvailability fromJson(JsonReader jsonReader)

Reads an instance of MetricAvailability from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

retention

public String retention()

Get the retention property: The retention for the metric values.

Returns:

the retention 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:

validate

public void validate()

Validates the instance.

Applies to