MetricDefinitionInner Class
- java.
lang. Object - com.
azure. resourcemanager. sql. fluent. models. MetricDefinitionInner
- com.
Implements
public final class MetricDefinitionInner
implements JsonSerializable<MetricDefinitionInner>
A database metric definition.
Constructor Summary
| Constructor | Description |
|---|---|
| MetricDefinitionInner() |
Creates an instance of Metric |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
|
static
Metric |
fromJson(JsonReader jsonReader)
Reads an instance of Metric |
|
List<Metric |
metricAvailabilities()
Get the metric |
|
Metric |
name()
Get the name property: The name information for the metric. |
|
Primary |
primaryAggregationType()
Get the primary |
| String |
resourceUri()
Get the resource |
|
Json |
toJson(JsonWriter jsonWriter) |
|
Unit |
unit()
Get the unit property: The unit of the metric. |
| void |
validate()
Validates the instance. |
Methods inherited from java.lang.Object
Constructor Details
MetricDefinitionInner
public MetricDefinitionInner()
Creates an instance of MetricDefinitionInner class.
Method Details
fromJson
public static MetricDefinitionInner fromJson(JsonReader jsonReader)
Reads an instance of MetricDefinitionInner from the JsonReader.
Parameters:
Returns:
Throws:
metricAvailabilities
public List<MetricAvailability> metricAvailabilities()
Get the metricAvailabilities property: The list of database metric availabilities for the metric.
Returns:
name
public MetricName name()
Get the name property: The name information for the metric.
Returns:
primaryAggregationType
public PrimaryAggregationType primaryAggregationType()
Get the primaryAggregationType property: The primary aggregation type defining how metric values are displayed.
Returns:
resourceUri
public String resourceUri()
Get the resourceUri property: The resource uri of the database.
Returns:
toJson
unit
public UnitDefinitionType unit()
Get the unit property: The unit of the metric.
Returns:
validate
public void validate()
Validates the instance.