Delen via


ScheduledQueryRuleResource.Update Method

Definition

Update a scheduled query rule.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/scheduledQueryRules/{ruleName}
  • Operation Id: ScheduledQueryRules_Update
  • Default Api Version: 2022-06-15
  • Resource: ScheduledQueryRuleResource
public virtual Azure.Response<Azure.ResourceManager.Monitor.ScheduledQueryRuleResource> Update (Azure.ResourceManager.Monitor.Models.ScheduledQueryRulePatch patch, System.Threading.CancellationToken cancellationToken = default);
abstract member Update : Azure.ResourceManager.Monitor.Models.ScheduledQueryRulePatch * System.Threading.CancellationToken -> Azure.Response<Azure.ResourceManager.Monitor.ScheduledQueryRuleResource>
override this.Update : Azure.ResourceManager.Monitor.Models.ScheduledQueryRulePatch * System.Threading.CancellationToken -> Azure.Response<Azure.ResourceManager.Monitor.ScheduledQueryRuleResource>
Public Overridable Function Update (patch As ScheduledQueryRulePatch, Optional cancellationToken As CancellationToken = Nothing) As Response(Of ScheduledQueryRuleResource)

Parameters

patch
ScheduledQueryRulePatch

The parameters of the rule to update.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Exceptions

patch is null.

Applies to