共用方式為


RuleDataSource Constructors

Definition

Overloads

RuleDataSource()

Initializes a new instance of the RuleDataSource class.

RuleDataSource(String, String, String, String)

Initializes a new instance of the RuleDataSource class.

RuleDataSource()

Initializes a new instance of the RuleDataSource class.

public RuleDataSource ();
Public Sub New ()

Applies to

RuleDataSource(String, String, String, String)

Initializes a new instance of the RuleDataSource class.

public RuleDataSource (string resourceUri = default, string legacyResourceId = default, string resourceLocation = default, string metricNamespace = default);
new Microsoft.Azure.Management.Monitor.Models.RuleDataSource : string * string * string * string -> Microsoft.Azure.Management.Monitor.Models.RuleDataSource
Public Sub New (Optional resourceUri As String = Nothing, Optional legacyResourceId As String = Nothing, Optional resourceLocation As String = Nothing, Optional metricNamespace As String = Nothing)

Parameters

resourceUri
String

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

legacyResourceId
String

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

resourceLocation
String

the location of the resource.

metricNamespace
String

the namespace of the metric.

Applies to