次の方法で共有


MetricAlertsOperationsExtensions.CreateOrUpdateAsync メソッド

定義

メトリック アラート定義を作成または更新します。

public static System.Threading.Tasks.Task<Microsoft.Azure.Management.Monitor.Models.MetricAlertResource> CreateOrUpdateAsync (this Microsoft.Azure.Management.Monitor.IMetricAlertsOperations operations, string resourceGroupName, string ruleName, Microsoft.Azure.Management.Monitor.Models.MetricAlertResource parameters, System.Threading.CancellationToken cancellationToken = default);
static member CreateOrUpdateAsync : Microsoft.Azure.Management.Monitor.IMetricAlertsOperations * string * string * Microsoft.Azure.Management.Monitor.Models.MetricAlertResource * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Azure.Management.Monitor.Models.MetricAlertResource>
<Extension()>
Public Function CreateOrUpdateAsync (operations As IMetricAlertsOperations, resourceGroupName As String, ruleName As String, parameters As MetricAlertResource, Optional cancellationToken As CancellationToken = Nothing) As Task(Of MetricAlertResource)

パラメーター

operations
IMetricAlertsOperations

この拡張メソッドの操作グループ。

resourceGroupName
String

リソース グループの名前。 名前の大文字と小文字は区別されます。

ruleName
String

ルールの名前です。

parameters
MetricAlertResource

作成または更新するルールのパラメーター。

cancellationToken
CancellationToken

キャンセル トークン。

戻り値

適用対象