Dela via


RuleMetricDataSource Class

Definition

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

[Newtonsoft.Json.JsonObject("Microsoft.Azure.Management.Insights.Models.RuleMetricDataSource")]
public class RuleMetricDataSource : Microsoft.Azure.Management.Monitor.Models.RuleDataSource
[<Newtonsoft.Json.JsonObject("Microsoft.Azure.Management.Insights.Models.RuleMetricDataSource")>]
type RuleMetricDataSource = class
    inherit RuleDataSource
Public Class RuleMetricDataSource
Inherits RuleDataSource
Inheritance
RuleMetricDataSource
Attributes
Newtonsoft.Json.JsonObjectAttribute

Constructors

RuleMetricDataSource()

Initializes a new instance of the RuleMetricDataSource class.

RuleMetricDataSource(String, String, String, String, String)

Initializes a new instance of the RuleMetricDataSource class.

Properties

LegacyResourceId

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

(Inherited from RuleDataSource)
MetricName

Gets or sets the name of the metric that defines what the rule monitors.

MetricNamespace

Gets or sets the namespace of the metric.

(Inherited from RuleDataSource)
ResourceLocation

Gets or sets the location of the resource.

(Inherited from RuleDataSource)
ResourceUri

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

(Inherited from RuleDataSource)

Applies to