Class MetricSpecificationV1

java.lang.Object
com.azure.resourcemanager.databoxedge.models.MetricSpecificationV1

public final class MetricSpecificationV1 extends Object
Metric specification version 1.
  • Constructor Details

    • MetricSpecificationV1

      public MetricSpecificationV1()
      Creates an instance of MetricSpecificationV1 class.
  • Method Details

    • name

      public String name()
      Get the name property: Name of the metric.
      Returns:
      the name value.
    • withName

      public MetricSpecificationV1 withName(String name)
      Set the name property: Name of the metric.
      Parameters:
      name - the name value to set.
      Returns:
      the MetricSpecificationV1 object itself.
    • displayName

      public String displayName()
      Get the displayName property: Display name of the metric.
      Returns:
      the displayName value.
    • withDisplayName

      public MetricSpecificationV1 withDisplayName(String displayName)
      Set the displayName property: Display name of the metric.
      Parameters:
      displayName - the displayName value to set.
      Returns:
      the MetricSpecificationV1 object itself.
    • displayDescription

      public String displayDescription()
      Get the displayDescription property: Description of the metric to be displayed.
      Returns:
      the displayDescription value.
    • withDisplayDescription

      public MetricSpecificationV1 withDisplayDescription(String displayDescription)
      Set the displayDescription property: Description of the metric to be displayed.
      Parameters:
      displayDescription - the displayDescription value to set.
      Returns:
      the MetricSpecificationV1 object itself.
    • unit

      public MetricUnit unit()
      Get the unit property: Metric units.
      Returns:
      the unit value.
    • withUnit

      public MetricSpecificationV1 withUnit(MetricUnit unit)
      Set the unit property: Metric units.
      Parameters:
      unit - the unit value to set.
      Returns:
      the MetricSpecificationV1 object itself.
    • aggregationType

      public MetricAggregationType aggregationType()
      Get the aggregationType property: Metric aggregation type.
      Returns:
      the aggregationType value.
    • withAggregationType

      public MetricSpecificationV1 withAggregationType(MetricAggregationType aggregationType)
      Set the aggregationType property: Metric aggregation type.
      Parameters:
      aggregationType - the aggregationType value to set.
      Returns:
      the MetricSpecificationV1 object itself.
    • dimensions

      public List<MetricDimensionV1> dimensions()
      Get the dimensions property: Metric dimensions, other than default dimension which is resource.
      Returns:
      the dimensions value.
    • withDimensions

      public MetricSpecificationV1 withDimensions(List<MetricDimensionV1> dimensions)
      Set the dimensions property: Metric dimensions, other than default dimension which is resource.
      Parameters:
      dimensions - the dimensions value to set.
      Returns:
      the MetricSpecificationV1 object itself.
    • fillGapWithZero

      public Boolean fillGapWithZero()
      Get the fillGapWithZero property: Set true to fill the gaps with zero.
      Returns:
      the fillGapWithZero value.
    • withFillGapWithZero

      public MetricSpecificationV1 withFillGapWithZero(Boolean fillGapWithZero)
      Set the fillGapWithZero property: Set true to fill the gaps with zero.
      Parameters:
      fillGapWithZero - the fillGapWithZero value to set.
      Returns:
      the MetricSpecificationV1 object itself.
    • category

      public MetricCategory category()
      Get the category property: Metric category.
      Returns:
      the category value.
    • withCategory

      public MetricSpecificationV1 withCategory(MetricCategory category)
      Set the category property: Metric category.
      Parameters:
      category - the category value to set.
      Returns:
      the MetricSpecificationV1 object itself.
    • resourceIdDimensionNameOverride

      public String resourceIdDimensionNameOverride()
      Get the resourceIdDimensionNameOverride property: Resource name override.
      Returns:
      the resourceIdDimensionNameOverride value.
    • withResourceIdDimensionNameOverride

      public MetricSpecificationV1 withResourceIdDimensionNameOverride(String resourceIdDimensionNameOverride)
      Set the resourceIdDimensionNameOverride property: Resource name override.
      Parameters:
      resourceIdDimensionNameOverride - the resourceIdDimensionNameOverride value to set.
      Returns:
      the MetricSpecificationV1 object itself.
    • supportedTimeGrainTypes

      public List<TimeGrain> supportedTimeGrainTypes()
      Get the supportedTimeGrainTypes property: Support granularity of metrics.
      Returns:
      the supportedTimeGrainTypes value.
    • withSupportedTimeGrainTypes

      public MetricSpecificationV1 withSupportedTimeGrainTypes(List<TimeGrain> supportedTimeGrainTypes)
      Set the supportedTimeGrainTypes property: Support granularity of metrics.
      Parameters:
      supportedTimeGrainTypes - the supportedTimeGrainTypes value to set.
      Returns:
      the MetricSpecificationV1 object itself.
    • supportedAggregationTypes

      public List<MetricAggregationType> supportedAggregationTypes()
      Get the supportedAggregationTypes property: Support metric aggregation type.
      Returns:
      the supportedAggregationTypes value.
    • withSupportedAggregationTypes

      public MetricSpecificationV1 withSupportedAggregationTypes(List<MetricAggregationType> supportedAggregationTypes)
      Set the supportedAggregationTypes property: Support metric aggregation type.
      Parameters:
      supportedAggregationTypes - the supportedAggregationTypes value to set.
      Returns:
      the MetricSpecificationV1 object itself.
    • validate

      public void validate()
      Validates the instance.
      Throws:
      IllegalArgumentException - thrown if the instance is not valid.