Class MetricSpecification

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

public final class MetricSpecification extends Object
A metric emitted by service.
  • Constructor Details

    • MetricSpecification

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

    • name

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

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

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

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

      public MetricAggregationType aggregationType()
      Get the aggregationType property: The metric aggregation type.
      Returns:
      the aggregationType value.
    • lockAggregationType

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

      public List<String> supportedAggregationTypes()
      Get the supportedAggregationTypes property: Supported aggregation types.
      Returns:
      the supportedAggregationTypes value.
    • withSupportedAggregationTypes

      public MetricSpecification withSupportedAggregationTypes(List<String> supportedAggregationTypes)
      Set the supportedAggregationTypes property: Supported aggregation types.
      Parameters:
      supportedAggregationTypes - the supportedAggregationTypes value to set.
      Returns:
      the MetricSpecification object itself.
    • dimensions

      public List<MetricDimension> dimensions()
      Get the dimensions property: The metric dimensions.
      Returns:
      the dimensions value.
    • enableRegionalMdmAccount

      public Boolean enableRegionalMdmAccount()
      Get the enableRegionalMdmAccount property: Indicates whether regional MDM account is enabled.
      Returns:
      the enableRegionalMdmAccount value.
    • sourceMdmAccount

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

      public String sourceMdmNamespace()
      Get the sourceMdmNamespace property: The source MDM namespace.
      Returns:
      the sourceMdmNamespace value.
    • supportedTimeGrainTypes

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

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