Class MetricAlertMultipleResourceMultipleMetricCriteria

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

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

    • MetricAlertMultipleResourceMultipleMetricCriteria

      public MetricAlertMultipleResourceMultipleMetricCriteria()
      Creates an instance of MetricAlertMultipleResourceMultipleMetricCriteria 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<MultiMetricCriteria> allOf()
      Get the allOf property: the list of multiple metric criteria for this 'all of' operation.
      Returns:
      the allOf value.
    • withAllOf

      Set the allOf property: the list of multiple metric criteria for this 'all of' operation.
      Parameters:
      allOf - the allOf value to set.
      Returns:
      the MetricAlertMultipleResourceMultipleMetricCriteria 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 MetricAlertMultipleResourceMultipleMetricCriteria fromJson(com.azure.json.JsonReader jsonReader) throws IOException
      Reads an instance of MetricAlertMultipleResourceMultipleMetricCriteria from the JsonReader.
      Parameters:
      jsonReader - The JsonReader being read.
      Returns:
      An instance of MetricAlertMultipleResourceMultipleMetricCriteria 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 MetricAlertMultipleResourceMultipleMetricCriteria.