Class MetricSpecification

java.lang.Object
com.azure.resourcemanager.powerbidedicated.models.MetricSpecification

public final class MetricSpecification extends Object
Metric specification for exposing performance metrics to shoebox.
  • Constructor Details

    • MetricSpecification

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

    • name

      public String name()
      Get the name property: Metric name.
      Returns:
      the name value.
    • displayName

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

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

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

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

      public String unit()
      Get the unit property: Unit for the metric.
      Returns:
      the unit value.
    • aggregationType

      public String aggregationType()
      Get the aggregationType property: Aggregation type for the metric.
      Returns:
      the aggregationType value.
    • metricFilterPattern

      public String metricFilterPattern()
      Get the metricFilterPattern property: Pattern used to filter the metric.
      Returns:
      the metricFilterPattern value.
    • dimensions

      Get the dimensions property: For describing multi dimensional metrics.
      Returns:
      the dimensions value.
    • withDimensions

      public MetricSpecification withDimensions(List<MetricSpecificationDimensionsItem> dimensions)
      Set the dimensions property: For describing multi dimensional metrics.
      Parameters:
      dimensions - the dimensions value to set.
      Returns:
      the MetricSpecification object itself.
    • validate

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