Class MetricSpecification

java.lang.Object
com.microsoft.azure.management.storage.MetricSpecification

public class MetricSpecification extends Object
Metric specification of operation.
  • Constructor Details

    • MetricSpecification

      public MetricSpecification()
  • Method Details

    • name

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

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

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

      public MetricSpecification withDisplayName(String displayName)
      Set display name of metric specification.
      Parameters:
      displayName - the displayName value to set
      Returns:
      the MetricSpecification object itself.
    • displayDescription

      public String displayDescription()
      Get display description of metric specification.
      Returns:
      the displayDescription value
    • withDisplayDescription

      public MetricSpecification withDisplayDescription(String displayDescription)
      Set display description of metric specification.
      Parameters:
      displayDescription - the displayDescription value to set
      Returns:
      the MetricSpecification object itself.
    • unit

      public String unit()
      Get unit could be Bytes or Count.
      Returns:
      the unit value
    • withUnit

      public MetricSpecification withUnit(String unit)
      Set unit could be Bytes or Count.
      Parameters:
      unit - the unit value to set
      Returns:
      the MetricSpecification object itself.
    • dimensions

      public List<Dimension> dimensions()
      Get dimensions of blobs, including blob type and access tier.
      Returns:
      the dimensions value
    • withDimensions

      public MetricSpecification withDimensions(List<Dimension> dimensions)
      Set dimensions of blobs, including blob type and access tier.
      Parameters:
      dimensions - the dimensions value to set
      Returns:
      the MetricSpecification object itself.
    • aggregationType

      public String aggregationType()
      Get aggregation type could be Average.
      Returns:
      the aggregationType value
    • withAggregationType

      public MetricSpecification withAggregationType(String aggregationType)
      Set aggregation type could be Average.
      Parameters:
      aggregationType - the aggregationType value to set
      Returns:
      the MetricSpecification object itself.
    • fillGapWithZero

      public Boolean fillGapWithZero()
      Get the property to decide fill gap with zero or not.
      Returns:
      the fillGapWithZero value
    • withFillGapWithZero

      public MetricSpecification withFillGapWithZero(Boolean fillGapWithZero)
      Set the property to decide fill gap with zero or not.
      Parameters:
      fillGapWithZero - the fillGapWithZero value to set
      Returns:
      the MetricSpecification object itself.
    • category

      public String category()
      Get the category this metric specification belong to, could be Capacity.
      Returns:
      the category value
    • withCategory

      public MetricSpecification withCategory(String category)
      Set the category this metric specification belong to, could be Capacity.
      Parameters:
      category - the category value to set
      Returns:
      the MetricSpecification object itself.
    • resourceIdDimensionNameOverride

      public String resourceIdDimensionNameOverride()
      Get account Resource Id.
      Returns:
      the resourceIdDimensionNameOverride value
    • withResourceIdDimensionNameOverride

      public MetricSpecification withResourceIdDimensionNameOverride(String resourceIdDimensionNameOverride)
      Set account Resource Id.
      Parameters:
      resourceIdDimensionNameOverride - the resourceIdDimensionNameOverride value to set
      Returns:
      the MetricSpecification object itself.