Class MetricAlertSingleResourceMultipleMetricCriteria

java.lang.Object
com.azure.resourcemanager.monitor.models.MetricAlertCriteria
com.azure.resourcemanager.monitor.models.MetricAlertSingleResourceMultipleMetricCriteria
All Implemented Interfaces:
com.azure.json.JsonSerializable<MetricAlertCriteria>

public final class MetricAlertSingleResourceMultipleMetricCriteria extends MetricAlertCriteria
Specifies the metric alert criteria for a single resource that has multiple metric criteria.
  • Constructor Details

    • MetricAlertSingleResourceMultipleMetricCriteria

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

    • odataType

      public Odatatype odataType()
      Get the odataType property: specifies the type of the alert criteria.
      Overrides:
      odataType in class MetricAlertCriteria
      Returns:
      the odataType value.
    • allOf

      public List<MetricCriteria> allOf()
      Get the allOf property: The list of metric criteria for this 'all of' operation.
      Returns:
      the allOf value.
    • withAllOf

      Set the allOf property: The list of metric criteria for this 'all of' operation.
      Parameters:
      allOf - the allOf value to set.
      Returns:
      the MetricAlertSingleResourceMultipleMetricCriteria object itself.
    • validate

      public void validate()
      Validates the instance.
      Overrides:
      validate in class MetricAlertCriteria
      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<MetricAlertCriteria>
      Overrides:
      toJson in class MetricAlertCriteria
      Throws:
      IOException
    • fromJson

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