java.lang.Object
com.azure.resourcemanager.cosmos.fluent.models.MetricDefinitionInner
- All Implemented Interfaces:
com.azure.json.JsonSerializable<MetricDefinitionInner>
The definition of a metric.
-
Constructor Summary
Constructors
Creates an instance of MetricDefinitionInner class.
-
Method Summary
fromJson(com.azure.json.JsonReader jsonReader)
Reads an instance of MetricDefinitionInner from the JsonReader.
Get the metricAvailabilities property: The list of metric availabilities for the account.
Get the name property: The name information for the metric.
Get the primaryAggregationType property: The primary aggregation type of the metric.
Get the resourceUri property: The resource uri of the database.
com.azure.json.JsonWriter
toJson(com.azure.json.JsonWriter jsonWriter)
Get the unit property: The unit of the metric.
void
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Constructor Details
-
MetricDefinitionInner
public MetricDefinitionInner()
Creates an instance of MetricDefinitionInner class.
-
Method Details
-
metricAvailabilities
Get the metricAvailabilities property: The list of metric availabilities for the account.
- Returns:
- the metricAvailabilities value.
-
primaryAggregationType
Get the primaryAggregationType property: The primary aggregation type of the metric.
- Returns:
- the primaryAggregationType value.
-
unit
Get the unit property: The unit of the metric.
- Returns:
- the unit value.
-
resourceUri
Get the resourceUri property: The resource uri of the database.
- Returns:
- the resourceUri value.
-
name
Get the name property: The name information for the metric.
- Returns:
- the name value.
-
validate
public void validate()
Validates the instance.
- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-
-
fromJson
Reads an instance of MetricDefinitionInner from the JsonReader.
- Parameters:
jsonReader
- The JsonReader being read.
- Returns:
- An instance of MetricDefinitionInner 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 MetricDefinitionInner.