共用方式為


MetricAlertMultipleResourceMultipleMetricCriteria Class

Definition

Specifies the metric alert criteria for multiple resource that has multiple metric criteria.

public class MetricAlertMultipleResourceMultipleMetricCriteria : Azure.ResourceManager.Monitor.Models.MetricAlertCriteria, System.ClientModel.Primitives.IJsonModel<Azure.ResourceManager.Monitor.Models.MetricAlertMultipleResourceMultipleMetricCriteria>, System.ClientModel.Primitives.IPersistableModel<Azure.ResourceManager.Monitor.Models.MetricAlertMultipleResourceMultipleMetricCriteria>
type MetricAlertMultipleResourceMultipleMetricCriteria = class
    inherit MetricAlertCriteria
    interface IJsonModel<MetricAlertMultipleResourceMultipleMetricCriteria>
    interface IPersistableModel<MetricAlertMultipleResourceMultipleMetricCriteria>
Public Class MetricAlertMultipleResourceMultipleMetricCriteria
Inherits MetricAlertCriteria
Implements IJsonModel(Of MetricAlertMultipleResourceMultipleMetricCriteria), IPersistableModel(Of MetricAlertMultipleResourceMultipleMetricCriteria)
Inheritance
MetricAlertMultipleResourceMultipleMetricCriteria
Implements

Constructors

MetricAlertMultipleResourceMultipleMetricCriteria()

Initializes a new instance of MetricAlertMultipleResourceMultipleMetricCriteria.

Properties

AdditionalProperties

Additional Properties

To assign an object to the value of this property use FromObjectAsJson<T>(T, JsonSerializerOptions).

To assign an already formatted json string to this property use FromString(String).

Examples:

  • BinaryData.FromObjectAsJson("foo"): Creates a payload of "foo".
  • BinaryData.FromString("\"foo\""): Creates a payload of "foo".
  • BinaryData.FromObjectAsJson(new { key = "value" }): Creates a payload of { "key": "value" }.
  • BinaryData.FromString("{\"key\": \"value\"}"): Creates a payload of { "key": "value" }.

(Inherited from MetricAlertCriteria)
AllOf

the list of multiple metric criteria for this 'all of' operation. Please note MultiMetricCriteria is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. The available derived classes include DynamicMetricCriteria and MetricCriteria.

Explicit Interface Implementations

IJsonModel<MetricAlertCriteria>.Create(Utf8JsonReader, ModelReaderWriterOptions)

Reads one JSON value (including objects or arrays) from the provided reader and converts it to a model.

(Inherited from MetricAlertCriteria)
IJsonModel<MetricAlertCriteria>.Write(Utf8JsonWriter, ModelReaderWriterOptions)

Writes the model to the provided Utf8JsonWriter.

(Inherited from MetricAlertCriteria)
IJsonModel<MetricAlertMultipleResourceMultipleMetricCriteria>.Create(Utf8JsonReader, ModelReaderWriterOptions)

Reads one JSON value (including objects or arrays) from the provided reader and converts it to a model.

IJsonModel<MetricAlertMultipleResourceMultipleMetricCriteria>.Write(Utf8JsonWriter, ModelReaderWriterOptions)

Writes the model to the provided Utf8JsonWriter.

IPersistableModel<MetricAlertCriteria>.Create(BinaryData, ModelReaderWriterOptions)

Converts the provided BinaryData into a model.

(Inherited from MetricAlertCriteria)
IPersistableModel<MetricAlertCriteria>.GetFormatFromOptions(ModelReaderWriterOptions)

Gets the data interchange format (JSON, Xml, etc) that the model uses when communicating with the service.

(Inherited from MetricAlertCriteria)
IPersistableModel<MetricAlertCriteria>.Write(ModelReaderWriterOptions)

Writes the model into a BinaryData.

(Inherited from MetricAlertCriteria)
IPersistableModel<MetricAlertMultipleResourceMultipleMetricCriteria>.Create(BinaryData, ModelReaderWriterOptions)

Converts the provided BinaryData into a model.

IPersistableModel<MetricAlertMultipleResourceMultipleMetricCriteria>.GetFormatFromOptions(ModelReaderWriterOptions)

Gets the data interchange format (JSON, Xml, etc) that the model uses when communicating with the service.

IPersistableModel<MetricAlertMultipleResourceMultipleMetricCriteria>.Write(ModelReaderWriterOptions)

Writes the model into a BinaryData.

Applies to