ScheduledQueryRuleResource.UpdateAsync Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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 System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.Monitor.ScheduledQueryRuleResource>> UpdateAsync (Azure.ResourceManager.Monitor.Models.ScheduledQueryRulePatch patch, System.Threading.CancellationToken cancellationToken = default);
abstract member UpdateAsync : Azure.ResourceManager.Monitor.Models.ScheduledQueryRulePatch * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.Monitor.ScheduledQueryRuleResource>>
override this.UpdateAsync : Azure.ResourceManager.Monitor.Models.ScheduledQueryRulePatch * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.Monitor.ScheduledQueryRuleResource>>
Public Overridable Function UpdateAsync (patch As ScheduledQueryRulePatch, Optional cancellationToken As CancellationToken = Nothing) As Task(Of 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.