MetricAvailability Class
- java.
lang. Object - com.
azure. resourcemanager. cosmos. models. MetricAvailability
- com.
Implements
public final class MetricAvailability
implements JsonSerializable<MetricAvailability>
The availability of the metric.
Constructor Summary
Constructor | Description |
---|---|
MetricAvailability() |
Creates an instance of Metric |
Method Summary
Modifier and Type | Method and Description |
---|---|
static
Metric |
fromJson(JsonReader jsonReader)
Reads an instance of Metric |
String |
retention()
Get the retention property: The retention for the metric values. |
String |
timeGrain()
Get the time |
Json |
toJson(JsonWriter jsonWriter) |
void |
validate()
Validates the instance. |
Methods inherited from java.lang.Object
Constructor Details
MetricAvailability
public MetricAvailability()
Creates an instance of MetricAvailability class.
Method Details
fromJson
public static MetricAvailability fromJson(JsonReader jsonReader)
Reads an instance of MetricAvailability from the JsonReader.
Parameters:
Returns:
Throws:
retention
public String retention()
Get the retention property: The retention for the metric values.
Returns:
timeGrain
public String timeGrain()
Get the timeGrain property: The time grain to be used to summarize the metric values.
Returns:
toJson
validate
public void validate()
Validates the instance.
Applies to
Azure SDK for Java