MetricSpecification Class
- java.
lang. Object - com.
azure. resourcemanager. appplatform. models. MetricSpecification
- com.
Implements
public final class MetricSpecification
implements JsonSerializable<MetricSpecification>
Specifications of the Metrics for Azure Monitoring.
Constructor Summary
Constructor | Description |
---|---|
MetricSpecification() |
Creates an instance of Metric |
Method Summary
Modifier and Type | Method and Description |
---|---|
String |
aggregationType()
Get the aggregation |
String |
category()
Get the category property: Name of the metric category that the metric belongs to. |
List<Metric |
dimensions()
Get the dimensions property: Dimensions of the metric. |
String |
displayDescription()
Get the display |
String |
displayName()
Get the display |
Boolean |
fillGapWithZero()
Get the fill |
static
Metric |
fromJson(JsonReader jsonReader)
Reads an instance of Metric |
String |
name()
Get the name property: Name of the metric. |
String |
sourceMdmNamespace()
Get the source |
List<String> |
supportedAggregationTypes()
Get the supported |
List<String> |
supportedTimeGrainTypes()
Get the supported |
Json |
toJson(JsonWriter jsonWriter) |
String |
unit()
Get the unit property: Unit that makes sense for the metric. |
void |
validate()
Validates the instance. |
Metric |
withAggregationType(String aggregationType)
Set the aggregation |
Metric |
withCategory(String category)
Set the category property: Name of the metric category that the metric belongs to. |
Metric |
withDimensions(List<MetricDimension> dimensions)
Set the dimensions property: Dimensions of the metric. |
Metric |
withDisplayDescription(String displayDescription)
Set the display |
Metric |
withDisplayName(String displayName)
Set the display |
Metric |
withFillGapWithZero(Boolean fillGapWithZero)
Set the fill |
Metric |
withName(String name)
Set the name property: Name of the metric. |
Metric |
withSourceMdmNamespace(String sourceMdmNamespace)
Set the source |
Metric |
withSupportedAggregationTypes(List<String> supportedAggregationTypes)
Set the supported |
Metric |
withSupportedTimeGrainTypes(List<String> supportedTimeGrainTypes)
Set the supported |
Metric |
withUnit(String unit)
Set the unit property: Unit that makes sense for the metric. |
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: Only provide one value for this field. Valid values: Average, Minimum, Maximum, Total, Count.
Returns:
category
public String category()
Get the category property: Name of the metric category that the metric belongs to. A metric can only belong to a single category.
Returns:
dimensions
public List
Get the dimensions property: Dimensions of the metric.
Returns:
displayDescription
public String displayDescription()
Get the displayDescription property: Localized friendly description of the metric.
Returns:
displayName
public String displayName()
Get the displayName property: Localized friendly display name of the metric.
Returns:
fillGapWithZero
public Boolean fillGapWithZero()
Get the fillGapWithZero property: Optional. If set to true, then zero will be returned for time duration where no metric is emitted/published.
Returns:
fromJson
public static MetricSpecification fromJson(JsonReader jsonReader)
Reads an instance of MetricSpecification from the JsonReader.
Parameters:
Returns:
Throws:
name
public String name()
Get the name property: Name of the metric.
Returns:
sourceMdmNamespace
public String sourceMdmNamespace()
Get the sourceMdmNamespace property: Name of the MDM namespace. Optional.
Returns:
supportedAggregationTypes
public List
Get the supportedAggregationTypes property: Supported aggregation types.
Returns:
supportedTimeGrainTypes
public List
Get the supportedTimeGrainTypes property: Supported time grain types.
Returns:
toJson
unit
public String unit()
Get the unit property: Unit that makes sense for the metric.
Returns:
validate
public void validate()
Validates the instance.
withAggregationType
public MetricSpecification withAggregationType(String aggregationType)
Set the aggregationType property: Only provide one value for this field. Valid values: Average, Minimum, Maximum, Total, Count.
Parameters:
Returns:
withCategory
public MetricSpecification withCategory(String category)
Set the category property: Name of the metric category that the metric belongs to. A metric can only belong to a single category.
Parameters:
Returns:
withDimensions
public MetricSpecification withDimensions(List
Set the dimensions property: Dimensions of the metric.
Parameters:
Returns:
withDisplayDescription
public MetricSpecification withDisplayDescription(String displayDescription)
Set the displayDescription property: Localized friendly description of the metric.
Parameters:
Returns:
withDisplayName
public MetricSpecification withDisplayName(String displayName)
Set the displayName property: Localized friendly display name of the metric.
Parameters:
Returns:
withFillGapWithZero
public MetricSpecification withFillGapWithZero(Boolean fillGapWithZero)
Set the fillGapWithZero property: Optional. If set to true, then zero will be returned for time duration where no metric is emitted/published.
Parameters:
Returns:
withName
public MetricSpecification withName(String name)
Set the name property: Name of the metric.
Parameters:
Returns:
withSourceMdmNamespace
public MetricSpecification withSourceMdmNamespace(String sourceMdmNamespace)
Set the sourceMdmNamespace property: Name of the MDM namespace. Optional.
Parameters:
Returns:
withSupportedAggregationTypes
public MetricSpecification withSupportedAggregationTypes(List
Set the supportedAggregationTypes property: Supported aggregation types.
Parameters:
Returns:
withSupportedTimeGrainTypes
public MetricSpecification withSupportedTimeGrainTypes(List
Set the supportedTimeGrainTypes property: Supported time grain types.
Parameters:
Returns:
withUnit
public MetricSpecification withUnit(String unit)
Set the unit property: Unit that makes sense for the metric.
Parameters:
Returns:
Applies to
Azure SDK for Java