Class OperationMetricSpecificationDefinition

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

public final class OperationMetricSpecificationDefinition extends Object implements com.azure.json.JsonSerializable<OperationMetricSpecificationDefinition>
The definition of Azure Monitoring metric.
  • Method Details

    • name

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

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

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

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

      public String aggregationType()
      Get the aggregationType property: Metric aggregation type.
      Returns:
      the aggregationType value.
    • internalMetricName

      public String internalMetricName()
      Get the internalMetricName property: Internal metric name.
      Returns:
      the internalMetricName 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<OperationMetricSpecificationDefinition>
      Throws:
      IOException
    • fromJson

      public static OperationMetricSpecificationDefinition fromJson(com.azure.json.JsonReader jsonReader) throws IOException
      Reads an instance of OperationMetricSpecificationDefinition from the JsonReader.
      Parameters:
      jsonReader - The JsonReader being read.
      Returns:
      An instance of OperationMetricSpecificationDefinition 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 OperationMetricSpecificationDefinition.