MetricSpecification Class
- java.
lang. Object - com.
azure. resourcemanager. appservice. models. MetricSpecification
- com.
Implements
public final class MetricSpecification
implements JsonSerializable<MetricSpecification>
Definition of a single resource metric.
Constructor Summary
Constructor | Description |
---|---|
MetricSpecification() |
Creates an instance of Metric |
Method Summary
Modifier and Type | Method and Description |
---|---|
String |
aggregationType()
Get the aggregation |
List<Metric |
availabilities()
Get the availabilities property: The availabilities property. |
String |
category()
Get the category property: The category property. |
List<Dimension> |
dimensions()
Get the dimensions property: The dimensions property. |
String |
displayDescription()
Get the display |
String |
displayName()
Get the display |
Boolean |
enableRegionalMdmAccount()
Get the enable |
Boolean |
fillGapWithZero()
Get the fill |
static
Metric |
fromJson(JsonReader jsonReader)
Reads an instance of Metric |
Boolean |
isInternal()
Get the is |
String |
metricFilterPattern()
Get the metric |
String |
name()
Get the name property: The name property. |
String |
sourceMdmAccount()
Get the source |
String |
sourceMdmNamespace()
Get the source |
List<String> |
supportedAggregationTypes()
Get the supported |
List<String> |
supportedTimeGrainTypes()
Get the supported |
Boolean |
supportsInstanceLevelAggregation()
Get the supports |
Json |
toJson(JsonWriter jsonWriter) |
String |
unit()
Get the unit property: The unit property. |
void |
validate()
Validates the instance. |
Metric |
withAggregationType(String aggregationType)
Set the aggregation |
Metric |
withAvailabilities(List<MetricAvailability> availabilities)
Set the availabilities property: The availabilities property. |
Metric |
withCategory(String category)
Set the category property: The category property. |
Metric |
withDimensions(List<Dimension> dimensions)
Set the dimensions property: The dimensions property. |
Metric |
withDisplayDescription(String displayDescription)
Set the display |
Metric |
withDisplayName(String displayName)
Set the display |
Metric |
withEnableRegionalMdmAccount(Boolean enableRegionalMdmAccount)
Set the enable |
Metric |
withFillGapWithZero(Boolean fillGapWithZero)
Set the fill |
Metric |
withIsInternal(Boolean isInternal)
Set the is |
Metric |
withMetricFilterPattern(String metricFilterPattern)
Set the metric |
Metric |
withName(String name)
Set the name property: The name property. |
Metric |
withSourceMdmAccount(String sourceMdmAccount)
Set the source |
Metric |
withSourceMdmNamespace(String sourceMdmNamespace)
Set the source |
Metric |
withSupportedAggregationTypes(List<String> supportedAggregationTypes)
Set the supported |
Metric |
withSupportedTimeGrainTypes(List<String> supportedTimeGrainTypes)
Set the supported |
Metric |
withSupportsInstanceLevelAggregation(Boolean supportsInstanceLevelAggregation)
Set the supports |
Metric |
withUnit(String unit)
Set the unit property: The unit property. |
Methods inherited from java.lang.Object
Constructor Details
MetricSpecification
public MetricSpecification()
Creates an instance of MetricSpecification class.
Method Details
aggregationType
public String aggregationType()
Get the aggregationType property: The aggregationType property.
Returns:
availabilities
public List
Get the availabilities property: The availabilities property.
Returns:
category
public String category()
Get the category property: The category property.
Returns:
dimensions
public List
Get the dimensions property: The dimensions property.
Returns:
displayDescription
public String displayDescription()
Get the displayDescription property: The displayDescription property.
Returns:
displayName
public String displayName()
Get the displayName property: The displayName property.
Returns:
enableRegionalMdmAccount
public Boolean enableRegionalMdmAccount()
Get the enableRegionalMdmAccount property: The enableRegionalMdmAccount property.
Returns:
fillGapWithZero
public Boolean fillGapWithZero()
Get the fillGapWithZero property: The fillGapWithZero property.
Returns:
fromJson
public static MetricSpecification fromJson(JsonReader jsonReader)
Reads an instance of MetricSpecification from the JsonReader.
Parameters:
Returns:
Throws:
isInternal
public Boolean isInternal()
Get the isInternal property: The isInternal property.
Returns:
metricFilterPattern
public String metricFilterPattern()
Get the metricFilterPattern property: The metricFilterPattern property.
Returns:
name
public String name()
Get the name property: The name property.
Returns:
sourceMdmAccount
public String sourceMdmAccount()
Get the sourceMdmAccount property: The sourceMdmAccount property.
Returns:
sourceMdmNamespace
public String sourceMdmNamespace()
Get the sourceMdmNamespace property: The sourceMdmNamespace property.
Returns:
supportedAggregationTypes
public List
Get the supportedAggregationTypes property: The supportedAggregationTypes property.
Returns:
supportedTimeGrainTypes
public List
Get the supportedTimeGrainTypes property: The supportedTimeGrainTypes property.
Returns:
supportsInstanceLevelAggregation
public Boolean supportsInstanceLevelAggregation()
Get the supportsInstanceLevelAggregation property: The supportsInstanceLevelAggregation property.
Returns:
toJson
unit
public String unit()
Get the unit property: The unit property.
Returns:
validate
public void validate()
Validates the instance.
withAggregationType
public MetricSpecification withAggregationType(String aggregationType)
Set the aggregationType property: The aggregationType property.
Parameters:
Returns:
withAvailabilities
public MetricSpecification withAvailabilities(List
Set the availabilities property: The availabilities property.
Parameters:
Returns:
withCategory
public MetricSpecification withCategory(String category)
Set the category property: The category property.
Parameters:
Returns:
withDimensions
public MetricSpecification withDimensions(List
Set the dimensions property: The dimensions property.
Parameters:
Returns:
withDisplayDescription
public MetricSpecification withDisplayDescription(String displayDescription)
Set the displayDescription property: The displayDescription property.
Parameters:
Returns:
withDisplayName
public MetricSpecification withDisplayName(String displayName)
Set the displayName property: The displayName property.
Parameters:
Returns:
withEnableRegionalMdmAccount
public MetricSpecification withEnableRegionalMdmAccount(Boolean enableRegionalMdmAccount)
Set the enableRegionalMdmAccount property: The enableRegionalMdmAccount property.
Parameters:
Returns:
withFillGapWithZero
public MetricSpecification withFillGapWithZero(Boolean fillGapWithZero)
Set the fillGapWithZero property: The fillGapWithZero property.
Parameters:
Returns:
withIsInternal
public MetricSpecification withIsInternal(Boolean isInternal)
Set the isInternal property: The isInternal property.
Parameters:
Returns:
withMetricFilterPattern
public MetricSpecification withMetricFilterPattern(String metricFilterPattern)
Set the metricFilterPattern property: The metricFilterPattern property.
Parameters:
Returns:
withName
public MetricSpecification withName(String name)
Set the name property: The name property.
Parameters:
Returns:
withSourceMdmAccount
public MetricSpecification withSourceMdmAccount(String sourceMdmAccount)
Set the sourceMdmAccount property: The sourceMdmAccount property.
Parameters:
Returns:
withSourceMdmNamespace
public MetricSpecification withSourceMdmNamespace(String sourceMdmNamespace)
Set the sourceMdmNamespace property: The sourceMdmNamespace property.
Parameters:
Returns:
withSupportedAggregationTypes
public MetricSpecification withSupportedAggregationTypes(List
Set the supportedAggregationTypes property: The supportedAggregationTypes property.
Parameters:
Returns:
withSupportedTimeGrainTypes
public MetricSpecification withSupportedTimeGrainTypes(List
Set the supportedTimeGrainTypes property: The supportedTimeGrainTypes property.
Parameters:
Returns:
withSupportsInstanceLevelAggregation
public MetricSpecification withSupportsInstanceLevelAggregation(Boolean supportsInstanceLevelAggregation)
Set the supportsInstanceLevelAggregation property: The supportsInstanceLevelAggregation property.
Parameters:
Returns:
withUnit
public MetricSpecification withUnit(String unit)
Set the unit property: The unit property.
Parameters:
Returns:
Applies to
Azure SDK for Java