java.lang.Object
com.azure.resourcemanager.appservice.fluent.models.ResourceMetricDefinitionProperties
-
Constructor Summary
Constructors
Creates an instance of ResourceMetricDefinitionProperties class.
-
Method Summary
fromJson(com.azure.json.JsonReader jsonReader)
Reads an instance of ResourceMetricDefinitionProperties from the JsonReader.
Get the metricAvailabilities property: List of time grains supported for the metric together with retention
period.
Get the primaryAggregationType property: Primary aggregation type.
Get the properties property: Resource metric definition properties.
Get the resourceUri property: Resource URI.
com.azure.json.JsonWriter
toJson(com.azure.json.JsonWriter jsonWriter)
Get the unit property: 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
-
ResourceMetricDefinitionProperties
public ResourceMetricDefinitionProperties()
Creates an instance of ResourceMetricDefinitionProperties class.
-
Method Details
-
unit
Get the unit property: Unit of the metric.
- Returns:
- the unit value.
-
primaryAggregationType
public String primaryAggregationType()
Get the primaryAggregationType property: Primary aggregation type.
- Returns:
- the primaryAggregationType value.
-
metricAvailabilities
Get the metricAvailabilities property: List of time grains supported for the metric together with retention
period.
- Returns:
- the metricAvailabilities value.
-
resourceUri
Get the resourceUri property: Resource URI.
- Returns:
- the resourceUri value.
-
properties
Get the properties property: Resource metric definition properties.
- Returns:
- the properties value.
-
validate
public void validate()
Validates the instance.
- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-
-
fromJson
Reads an instance of ResourceMetricDefinitionProperties from the JsonReader.
- Parameters:
jsonReader
- The JsonReader being read.
- Returns:
- An instance of ResourceMetricDefinitionProperties 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 ResourceMetricDefinitionProperties.