Class MetricSpecification

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

public final class MetricSpecification extends Object implements com.azure.json.JsonSerializable<MetricSpecification>
Metric specification of operation.
  • Method Details

    • name

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

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

      public String displayDescription()
      Get the displayDescription property: Display description of metric specification.
      Returns:
      the displayDescription value.
    • unit

      public String unit()
      Get the unit property: The metric unit. Possible values include: 'Bytes', 'Count', 'Milliseconds'.
      Returns:
      the unit value.
    • aggregationType

      public String aggregationType()
      Get the aggregationType property: The metric aggregation type. Possible values include: 'Average', 'Count', 'Total'.
      Returns:
      the aggregationType value.
    • supportedAggregationTypes

      public List<String> supportedAggregationTypes()
      Get the supportedAggregationTypes property: The supported aggregation types for the metrics.
      Returns:
      the supportedAggregationTypes value.
    • supportedTimeGrainTypes

      public List<String> supportedTimeGrainTypes()
      Get the supportedTimeGrainTypes property: The supported time grain types for the metrics.
      Returns:
      the supportedTimeGrainTypes value.
    • lockAggregationType

      public String lockAggregationType()
      Get the lockAggregationType property: The metric lock aggregation type.
      Returns:
      the lockAggregationType value.
    • dimensions

      public List<DimensionProperties> dimensions()
      Get the dimensions property: The dimensions of metric.
      Returns:
      the dimensions value.
    • fillGapWithZero

      public Boolean fillGapWithZero()
      Get the fillGapWithZero property: Property to specify whether to fill gap with zero.
      Returns:
      the fillGapWithZero value.
    • internalMetricName

      public String internalMetricName()
      Get the internalMetricName property: The 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<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.