MetricSpecificationV1 Class
- java.
lang. Object - com.
azure. resourcemanager. databoxedge. models. MetricSpecificationV1
- com.
Implements
public final class MetricSpecificationV1
implements JsonSerializable<MetricSpecificationV1>
Metric specification version 1.
Constructor Summary
| Constructor | Description |
|---|---|
| MetricSpecificationV1() |
Creates an instance of Metric |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
|
Metric |
aggregationType()
Get the aggregation |
|
Metric |
category()
Get the category property: Metric category. |
|
List<Metric |
dimensions()
Get the dimensions property: Metric dimensions, other than default dimension which is resource. |
| 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 |
resourceIdDimensionNameOverride()
Get the resource |
|
List<Metric |
supportedAggregationTypes()
Get the supported |
|
List<Time |
supportedTimeGrainTypes()
Get the supported |
|
Json |
toJson(JsonWriter jsonWriter) |
|
Metric |
unit()
Get the unit property: Metric units. |
| void |
validate()
Validates the instance. |
|
Metric |
withAggregationType(MetricAggregationType aggregationType)
Set the aggregation |
|
Metric |
withCategory(MetricCategory category)
Set the category property: Metric category. |
|
Metric |
withDimensions(List<MetricDimensionV1> dimensions)
Set the dimensions property: Metric dimensions, other than default dimension which is resource. |
|
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 |
withResourceIdDimensionNameOverride(String resourceIdDimensionNameOverride)
Set the resource |
|
Metric |
withSupportedAggregationTypes(List<MetricAggregationType> supportedAggregationTypes)
Set the supported |
|
Metric |
withSupportedTimeGrainTypes(List<TimeGrain> supportedTimeGrainTypes)
Set the supported |
|
Metric |
withUnit(MetricUnit unit)
Set the unit property: Metric units. |
Methods inherited from java.lang.Object
Constructor Details
MetricSpecificationV1
public MetricSpecificationV1()
Creates an instance of MetricSpecificationV1 class.
Method Details
aggregationType
public MetricAggregationType aggregationType()
Get the aggregationType property: Metric aggregation type.
Returns:
category
public MetricCategory category()
Get the category property: Metric category.
Returns:
dimensions
public List<MetricDimensionV1> dimensions()
Get the dimensions property: Metric dimensions, other than default dimension which is resource.
Returns:
displayDescription
public String displayDescription()
Get the displayDescription property: Description of the metric to be displayed.
Returns:
displayName
public String displayName()
Get the displayName property: Display name of the metric.
Returns:
fillGapWithZero
public Boolean fillGapWithZero()
Get the fillGapWithZero property: Set true to fill the gaps with zero.
Returns:
fromJson
public static MetricSpecificationV1 fromJson(JsonReader jsonReader)
Reads an instance of MetricSpecificationV1 from the JsonReader.
Parameters:
Returns:
Throws:
name
public String name()
Get the name property: Name of the metric.
Returns:
resourceIdDimensionNameOverride
public String resourceIdDimensionNameOverride()
Get the resourceIdDimensionNameOverride property: Resource name override.
Returns:
supportedAggregationTypes
public List<MetricAggregationType> supportedAggregationTypes()
Get the supportedAggregationTypes property: Support metric aggregation type.
Returns:
supportedTimeGrainTypes
public List<TimeGrain> supportedTimeGrainTypes()
Get the supportedTimeGrainTypes property: Support granularity of metrics.
Returns:
toJson
unit
public MetricUnit unit()
Get the unit property: Metric units.
Returns:
validate
public void validate()
Validates the instance.
withAggregationType
public MetricSpecificationV1 withAggregationType(MetricAggregationType aggregationType)
Set the aggregationType property: Metric aggregation type.
Parameters:
Returns:
withCategory
public MetricSpecificationV1 withCategory(MetricCategory category)
Set the category property: Metric category.
Parameters:
Returns:
withDimensions
public MetricSpecificationV1 withDimensions(List<MetricDimensionV1> dimensions)
Set the dimensions property: Metric dimensions, other than default dimension which is resource.
Parameters:
Returns:
withDisplayDescription
public MetricSpecificationV1 withDisplayDescription(String displayDescription)
Set the displayDescription property: Description of the metric to be displayed.
Parameters:
Returns:
withDisplayName
public MetricSpecificationV1 withDisplayName(String displayName)
Set the displayName property: Display name of the metric.
Parameters:
Returns:
withFillGapWithZero
public MetricSpecificationV1 withFillGapWithZero(Boolean fillGapWithZero)
Set the fillGapWithZero property: Set true to fill the gaps with zero.
Parameters:
Returns:
withName
public MetricSpecificationV1 withName(String name)
Set the name property: Name of the metric.
Parameters:
Returns:
withResourceIdDimensionNameOverride
public MetricSpecificationV1 withResourceIdDimensionNameOverride(String resourceIdDimensionNameOverride)
Set the resourceIdDimensionNameOverride property: Resource name override.
Parameters:
Returns:
withSupportedAggregationTypes
public MetricSpecificationV1 withSupportedAggregationTypes(List<MetricAggregationType> supportedAggregationTypes)
Set the supportedAggregationTypes property: Support metric aggregation type.
Parameters:
Returns:
withSupportedTimeGrainTypes
public MetricSpecificationV1 withSupportedTimeGrainTypes(List<TimeGrain> supportedTimeGrainTypes)
Set the supportedTimeGrainTypes property: Support granularity of metrics.
Parameters:
Returns:
withUnit
public MetricSpecificationV1 withUnit(MetricUnit unit)
Set the unit property: Metric units.
Parameters:
Returns: