RuleMetricDataSource Class

Definition

A rule metric data source. The discriminator value is always RuleMetricDataSource in this case.

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

Constructors

RuleMetricDataSource()

Initializes a new instance of RuleMetricDataSource.

Properties

LegacyResourceId

the legacy resource identifier of the resource the rule monitors. NOTE: this property cannot be updated for an existing rule.

(Inherited from RuleDataSource)
MetricName

the name of the metric that defines what the rule monitors.

MetricNamespace

the namespace of the metric.

(Inherited from RuleDataSource)
ResourceId

the resource identifier of the resource the rule monitors. NOTE: this property cannot be updated for an existing rule.

(Inherited from RuleDataSource)
ResourceLocation

the location of the resource.

(Inherited from RuleDataSource)

Explicit Interface Implementations

IJsonModel<RuleDataSource>.Create(Utf8JsonReader, ModelReaderWriterOptions)

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

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

Writes the model to the provided Utf8JsonWriter.

(Inherited from RuleDataSource)
IJsonModel<RuleMetricDataSource>.Create(Utf8JsonReader, ModelReaderWriterOptions)

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

IJsonModel<RuleMetricDataSource>.Write(Utf8JsonWriter, ModelReaderWriterOptions)

Writes the model to the provided Utf8JsonWriter.

IPersistableModel<RuleDataSource>.Create(BinaryData, ModelReaderWriterOptions)

Converts the provided BinaryData into a model.

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

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

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

Writes the model into a BinaryData.

(Inherited from RuleDataSource)
IPersistableModel<RuleMetricDataSource>.Create(BinaryData, ModelReaderWriterOptions)

Converts the provided BinaryData into a model.

IPersistableModel<RuleMetricDataSource>.GetFormatFromOptions(ModelReaderWriterOptions)

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

IPersistableModel<RuleMetricDataSource>.Write(ModelReaderWriterOptions)

Writes the model into a BinaryData.

Applies to