MetricAvailability Class
- java.
lang. Object - com.
azure. resourcemanager. sql. models. MetricAvailability
- com.
Implements
public final class MetricAvailability
implements JsonSerializable<MetricAvailability>
A metric availability value.
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 length of retention for the database metric. |
| 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 length of retention for the database metric.
Returns:
timeGrain
public String timeGrain()
Get the timeGrain property: The granularity of the database metric.
Returns:
toJson
validate
public void validate()
Validates the instance.