Class MetricSpecification
java.lang.Object
com.azure.resourcemanager.appservice.models.MetricSpecification
- All Implemented Interfaces:
com.azure.json.JsonSerializable<MetricSpecification>
public final class MetricSpecification
extends Object
implements com.azure.json.JsonSerializable<MetricSpecification>
Definition of a single resource metric.
-
Method Summary
Modifier and TypeMethodDescriptionGet the aggregationType property: The aggregationType property.Get the availabilities property: The availabilities property.category()Get the category property: The category property.Get the dimensions property: The dimensions property.Get the displayDescription property: The displayDescription property.Get the displayName property: The displayName property.Get the enableRegionalMdmAccount property: The enableRegionalMdmAccount property.Get the fillGapWithZero property: The fillGapWithZero property.static MetricSpecificationfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of MetricSpecification from the JsonReader.Get the isInternal property: The isInternal property.Get the metricFilterPattern property: The metricFilterPattern property.name()Get the name property: The name property.Get the sourceMdmAccount property: The sourceMdmAccount property.Get the sourceMdmNamespace property: The sourceMdmNamespace property.Get the supportedAggregationTypes property: The supportedAggregationTypes property.Get the supportedTimeGrainTypes property: The supportedTimeGrainTypes property.Get the supportsInstanceLevelAggregation property: The supportsInstanceLevelAggregation property.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) unit()Get the unit property: The unit property.voidvalidate()Validates the instance.Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Method Details
-
name
-
displayName
Get the displayName property: The displayName property.- Returns:
- the displayName value.
-
displayDescription
Get the displayDescription property: The displayDescription property.- Returns:
- the displayDescription value.
-
unit
-
aggregationType
Get the aggregationType property: The aggregationType property.- Returns:
- the aggregationType value.
-
supportsInstanceLevelAggregation
Get the supportsInstanceLevelAggregation property: The supportsInstanceLevelAggregation property.- Returns:
- the supportsInstanceLevelAggregation value.
-
enableRegionalMdmAccount
Get the enableRegionalMdmAccount property: The enableRegionalMdmAccount property.- Returns:
- the enableRegionalMdmAccount value.
-
sourceMdmAccount
Get the sourceMdmAccount property: The sourceMdmAccount property.- Returns:
- the sourceMdmAccount value.
-
sourceMdmNamespace
Get the sourceMdmNamespace property: The sourceMdmNamespace property.- Returns:
- the sourceMdmNamespace value.
-
metricFilterPattern
Get the metricFilterPattern property: The metricFilterPattern property.- Returns:
- the metricFilterPattern value.
-
fillGapWithZero
Get the fillGapWithZero property: The fillGapWithZero property.- Returns:
- the fillGapWithZero value.
-
isInternal
Get the isInternal property: The isInternal property.- Returns:
- the isInternal value.
-
dimensions
-
category
Get the category property: The category property.- Returns:
- the category value.
-
availabilities
Get the availabilities property: The availabilities property.- Returns:
- the availabilities value.
-
supportedTimeGrainTypes
-
supportedAggregationTypes
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<MetricSpecification>- Throws:
IOException
-
fromJson
Reads an instance of MetricSpecification from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of MetricSpecification 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 MetricSpecification.
-