Class MetricSpecification

java.lang.Object
com.azure.resourcemanager.appservice.models.MetricSpecification
All Implemented Interfaces:
com.azure.json.JsonSerializable<MetricSpecification>

public final class MetricSpecification extends Object implements com.azure.json.JsonSerializable<MetricSpecification>
Definition of a single resource metric.
  • Method Details

    • name

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

      public String displayName()
      Get the displayName property: The displayName property.
      Returns:
      the displayName value.
    • displayDescription

      public String displayDescription()
      Get the displayDescription property: The displayDescription property.
      Returns:
      the displayDescription value.
    • unit

      public String unit()
      Get the unit property: The unit property.
      Returns:
      the unit value.
    • aggregationType

      public String aggregationType()
      Get the aggregationType property: The aggregationType property.
      Returns:
      the aggregationType value.
    • supportsInstanceLevelAggregation

      public Boolean supportsInstanceLevelAggregation()
      Get the supportsInstanceLevelAggregation property: The supportsInstanceLevelAggregation property.
      Returns:
      the supportsInstanceLevelAggregation value.
    • enableRegionalMdmAccount

      public Boolean enableRegionalMdmAccount()
      Get the enableRegionalMdmAccount property: The enableRegionalMdmAccount property.
      Returns:
      the enableRegionalMdmAccount value.
    • sourceMdmAccount

      public String sourceMdmAccount()
      Get the sourceMdmAccount property: The sourceMdmAccount property.
      Returns:
      the sourceMdmAccount value.
    • sourceMdmNamespace

      public String sourceMdmNamespace()
      Get the sourceMdmNamespace property: The sourceMdmNamespace property.
      Returns:
      the sourceMdmNamespace value.
    • metricFilterPattern

      public String metricFilterPattern()
      Get the metricFilterPattern property: The metricFilterPattern property.
      Returns:
      the metricFilterPattern value.
    • fillGapWithZero

      public Boolean fillGapWithZero()
      Get the fillGapWithZero property: The fillGapWithZero property.
      Returns:
      the fillGapWithZero value.
    • isInternal

      public Boolean isInternal()
      Get the isInternal property: The isInternal property.
      Returns:
      the isInternal value.
    • dimensions

      public List<Dimension> dimensions()
      Get the dimensions property: The dimensions property.
      Returns:
      the dimensions value.
    • category

      public String category()
      Get the category property: The category property.
      Returns:
      the category value.
    • availabilities

      public List<MetricAvailability> availabilities()
      Get the availabilities property: The availabilities property.
      Returns:
      the availabilities value.
    • supportedTimeGrainTypes

      public List<String> supportedTimeGrainTypes()
      Get the supportedTimeGrainTypes property: The supportedTimeGrainTypes property.
      Returns:
      the supportedTimeGrainTypes value.
    • supportedAggregationTypes

      public List<String> supportedAggregationTypes()
      Get the supportedAggregationTypes property: The supportedAggregationTypes property.
      Returns:
      the supportedAggregationTypes value.
    • validate

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

      public com.azure.json.JsonWriter toJson(com.azure.json.JsonWriter jsonWriter) throws IOException
      Specified by:
      toJson in interface com.azure.json.JsonSerializable<MetricSpecification>
      Throws:
      IOException
    • fromJson

      public static MetricSpecification fromJson(com.azure.json.JsonReader jsonReader) throws IOException
      Reads an instance of MetricSpecification from the JsonReader.
      Parameters:
      jsonReader - The JsonReader being read.
      Returns:
      An instance of MetricSpecification if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.
      Throws:
      IOException - If an error occurs while reading the MetricSpecification.