次の方法で共有


MetricTrigger コンストラクター

定義

オーバーロード

MetricTrigger()

MetricTrigger クラスの新しいインスタンスを初期化します。

MetricTrigger(String, String, TimeSpan, MetricStatisticType, TimeSpan, TimeAggregationType, ComparisonOperationType, Double, String, String, IList<ScaleRuleMetricDimension>, Nullable<Boolean>)

MetricTrigger クラスの新しいインスタンスを初期化します。

MetricTrigger()

MetricTrigger クラスの新しいインスタンスを初期化します。

public MetricTrigger ();
Public Sub New ()

適用対象

MetricTrigger(String, String, TimeSpan, MetricStatisticType, TimeSpan, TimeAggregationType, ComparisonOperationType, Double, String, String, IList<ScaleRuleMetricDimension>, Nullable<Boolean>)

MetricTrigger クラスの新しいインスタンスを初期化します。

public MetricTrigger (string metricName, string metricResourceUri, TimeSpan timeGrain, Microsoft.Azure.Management.Monitor.Models.MetricStatisticType statistic, TimeSpan timeWindow, Microsoft.Azure.Management.Monitor.Models.TimeAggregationType timeAggregation, Microsoft.Azure.Management.Monitor.Models.ComparisonOperationType operatorProperty, double threshold, string metricNamespace = default, string metricResourceLocation = default, System.Collections.Generic.IList<Microsoft.Azure.Management.Monitor.Models.ScaleRuleMetricDimension> dimensions = default, bool? dividePerInstance = default);
new Microsoft.Azure.Management.Monitor.Models.MetricTrigger : string * string * TimeSpan * Microsoft.Azure.Management.Monitor.Models.MetricStatisticType * TimeSpan * Microsoft.Azure.Management.Monitor.Models.TimeAggregationType * Microsoft.Azure.Management.Monitor.Models.ComparisonOperationType * double * string * string * System.Collections.Generic.IList<Microsoft.Azure.Management.Monitor.Models.ScaleRuleMetricDimension> * Nullable<bool> -> Microsoft.Azure.Management.Monitor.Models.MetricTrigger
Public Sub New (metricName As String, metricResourceUri As String, timeGrain As TimeSpan, statistic As MetricStatisticType, timeWindow As TimeSpan, timeAggregation As TimeAggregationType, operatorProperty As ComparisonOperationType, threshold As Double, Optional metricNamespace As String = Nothing, Optional metricResourceLocation As String = Nothing, Optional dimensions As IList(Of ScaleRuleMetricDimension) = Nothing, Optional dividePerInstance As Nullable(Of Boolean) = Nothing)

パラメーター

metricName
String

ルールが監視する内容を定義するメトリックの名前。

metricResourceUri
String

ルールが監視するリソースのリソース識別子。

timeGrain
TimeSpan

ルールが監視するメトリックの細分性。 メトリックのメトリック定義から返される定義済みの値のいずれかである必要があります。 12 時間から 1 分の値にする必要があります。

statistic
MetricStatisticType

メトリック統計の種類。 複数のインスタンスのメトリックを結合する方法。 使用できる値は、'Average'、'Min'、'Max'、'Sum'、'Count' です。

timeWindow
TimeSpan

インスタンス データが収集される時間の範囲。 この値は、メトリック収集の遅延を上回っている必要があります。これは、resource-to-resource とは異なることがあります。 12 時間から 5 分の値にする必要があります。

timeAggregation
TimeAggregationType

時間集計の種類。 収集されたデータの経時的な結合方法。 既定値は Average です。 使用できる値は、'Average'、'Minimum'、'Maximum'、'Total'、'Count'、'Last' です。

operatorProperty
ComparisonOperationType

メトリック データとしきい値を比較するために使用される演算子。 使用できる値は、'Equals'、'NotEquals'、'GreaterThan'、'GreaterThanOrEqual'、'LessThan'、'LessThanOrEqual' です。

threshold
Double

スケール アクションをトリガーするメトリックのしきい値。

metricNamespace
String

ルールが監視する内容を定義するメトリックの名前空間。

metricResourceLocation
String

ルールが監視するリソースの場所。

dimensions
IList<ScaleRuleMetricDimension>

ディメンション条件の一覧。 例: [{"DimensionName":"AppName","Operator":"Equals","Values":["App1"]},{"DimensionName":"Deployment","Operator":"Equals","Values":["default"]}]

dividePerInstance
Nullable<Boolean>

メトリックをインスタンスごとに除算するかどうかを示す値。

適用対象