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.
-
Constructor Summary
Constructors -
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.withAggregationType(String aggregationType) Set the aggregationType property: The aggregationType property.withAvailabilities(List<MetricAvailability> availabilities) Set the availabilities property: The availabilities property.withCategory(String category) Set the category property: The category property.withDimensions(List<Dimension> dimensions) Set the dimensions property: The dimensions property.withDisplayDescription(String displayDescription) Set the displayDescription property: The displayDescription property.withDisplayName(String displayName) Set the displayName property: The displayName property.withEnableRegionalMdmAccount(Boolean enableRegionalMdmAccount) Set the enableRegionalMdmAccount property: The enableRegionalMdmAccount property.withFillGapWithZero(Boolean fillGapWithZero) Set the fillGapWithZero property: The fillGapWithZero property.withIsInternal(Boolean isInternal) Set the isInternal property: The isInternal property.withMetricFilterPattern(String metricFilterPattern) Set the metricFilterPattern property: The metricFilterPattern property.Set the name property: The name property.withSourceMdmAccount(String sourceMdmAccount) Set the sourceMdmAccount property: The sourceMdmAccount property.withSourceMdmNamespace(String sourceMdmNamespace) Set the sourceMdmNamespace property: The sourceMdmNamespace property.withSupportedAggregationTypes(List<String> supportedAggregationTypes) Set the supportedAggregationTypes property: The supportedAggregationTypes property.withSupportedTimeGrainTypes(List<String> supportedTimeGrainTypes) Set the supportedTimeGrainTypes property: The supportedTimeGrainTypes property.withSupportsInstanceLevelAggregation(Boolean supportsInstanceLevelAggregation) Set the supportsInstanceLevelAggregation property: The supportsInstanceLevelAggregation property.Set the unit property: The unit property.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Constructor Details
-
MetricSpecification
public MetricSpecification()Creates an instance of MetricSpecification class.
-
-
Method Details
-
name
Get the name property: The name property.- Returns:
- the name value.
-
withName
Set the name property: The name property.- Parameters:
name- the name value to set.- Returns:
- the MetricSpecification object itself.
-
displayName
Get the displayName property: The displayName property.- Returns:
- the displayName value.
-
withDisplayName
Set the displayName property: The displayName property.- Parameters:
displayName- the displayName value to set.- Returns:
- the MetricSpecification object itself.
-
displayDescription
Get the displayDescription property: The displayDescription property.- Returns:
- the displayDescription value.
-
withDisplayDescription
Set the displayDescription property: The displayDescription property.- Parameters:
displayDescription- the displayDescription value to set.- Returns:
- the MetricSpecification object itself.
-
unit
Get the unit property: The unit property.- Returns:
- the unit value.
-
withUnit
Set the unit property: The unit property.- Parameters:
unit- the unit value to set.- Returns:
- the MetricSpecification object itself.
-
aggregationType
Get the aggregationType property: The aggregationType property.- Returns:
- the aggregationType value.
-
withAggregationType
Set the aggregationType property: The aggregationType property.- Parameters:
aggregationType- the aggregationType value to set.- Returns:
- the MetricSpecification object itself.
-
supportsInstanceLevelAggregation
Get the supportsInstanceLevelAggregation property: The supportsInstanceLevelAggregation property.- Returns:
- the supportsInstanceLevelAggregation value.
-
withSupportsInstanceLevelAggregation
public MetricSpecification withSupportsInstanceLevelAggregation(Boolean supportsInstanceLevelAggregation) Set the supportsInstanceLevelAggregation property: The supportsInstanceLevelAggregation property.- Parameters:
supportsInstanceLevelAggregation- the supportsInstanceLevelAggregation value to set.- Returns:
- the MetricSpecification object itself.
-
enableRegionalMdmAccount
Get the enableRegionalMdmAccount property: The enableRegionalMdmAccount property.- Returns:
- the enableRegionalMdmAccount value.
-
withEnableRegionalMdmAccount
Set the enableRegionalMdmAccount property: The enableRegionalMdmAccount property.- Parameters:
enableRegionalMdmAccount- the enableRegionalMdmAccount value to set.- Returns:
- the MetricSpecification object itself.
-
sourceMdmAccount
Get the sourceMdmAccount property: The sourceMdmAccount property.- Returns:
- the sourceMdmAccount value.
-
withSourceMdmAccount
Set the sourceMdmAccount property: The sourceMdmAccount property.- Parameters:
sourceMdmAccount- the sourceMdmAccount value to set.- Returns:
- the MetricSpecification object itself.
-
sourceMdmNamespace
Get the sourceMdmNamespace property: The sourceMdmNamespace property.- Returns:
- the sourceMdmNamespace value.
-
withSourceMdmNamespace
Set the sourceMdmNamespace property: The sourceMdmNamespace property.- Parameters:
sourceMdmNamespace- the sourceMdmNamespace value to set.- Returns:
- the MetricSpecification object itself.
-
metricFilterPattern
Get the metricFilterPattern property: The metricFilterPattern property.- Returns:
- the metricFilterPattern value.
-
withMetricFilterPattern
Set the metricFilterPattern property: The metricFilterPattern property.- Parameters:
metricFilterPattern- the metricFilterPattern value to set.- Returns:
- the MetricSpecification object itself.
-
fillGapWithZero
Get the fillGapWithZero property: The fillGapWithZero property.- Returns:
- the fillGapWithZero value.
-
withFillGapWithZero
Set the fillGapWithZero property: The fillGapWithZero property.- Parameters:
fillGapWithZero- the fillGapWithZero value to set.- Returns:
- the MetricSpecification object itself.
-
isInternal
Get the isInternal property: The isInternal property.- Returns:
- the isInternal value.
-
withIsInternal
Set the isInternal property: The isInternal property.- Parameters:
isInternal- the isInternal value to set.- Returns:
- the MetricSpecification object itself.
-
dimensions
Get the dimensions property: The dimensions property.- Returns:
- the dimensions value.
-
withDimensions
Set the dimensions property: The dimensions property.- Parameters:
dimensions- the dimensions value to set.- Returns:
- the MetricSpecification object itself.
-
category
Get the category property: The category property.- Returns:
- the category value.
-
withCategory
Set the category property: The category property.- Parameters:
category- the category value to set.- Returns:
- the MetricSpecification object itself.
-
availabilities
Get the availabilities property: The availabilities property.- Returns:
- the availabilities value.
-
withAvailabilities
Set the availabilities property: The availabilities property.- Parameters:
availabilities- the availabilities value to set.- Returns:
- the MetricSpecification object itself.
-
supportedTimeGrainTypes
Get the supportedTimeGrainTypes property: The supportedTimeGrainTypes property.- Returns:
- the supportedTimeGrainTypes value.
-
withSupportedTimeGrainTypes
Set the supportedTimeGrainTypes property: The supportedTimeGrainTypes property.- Parameters:
supportedTimeGrainTypes- the supportedTimeGrainTypes value to set.- Returns:
- the MetricSpecification object itself.
-
supportedAggregationTypes
Get the supportedAggregationTypes property: The supportedAggregationTypes property.- Returns:
- the supportedAggregationTypes value.
-
withSupportedAggregationTypes
Set the supportedAggregationTypes property: The supportedAggregationTypes property.- Parameters:
supportedAggregationTypes- the supportedAggregationTypes value to set.- Returns:
- the MetricSpecification object itself.
-
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.
-