Share via


NewRelicMonitorResource.UpdateAsync Method

Definition

Overloads

UpdateAsync(NewRelicMonitorResourcePatch, CancellationToken)

Update a NewRelicMonitorResource

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/NewRelic.Observability/monitors/{monitorName}
  • Operation Id: Monitors_Update
  • Default Api Version: 2022-07-01
  • Resource: NewRelicMonitorResource
UpdateAsync(WaitUntil, NewRelicMonitorResourcePatch, CancellationToken)

Update a NewRelicMonitorResource

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/NewRelic.Observability/monitors/{monitorName}
  • Operation Id: Monitors_Update
  • Default Api Version: 2024-03-01
  • Resource: NewRelicMonitorResource

UpdateAsync(NewRelicMonitorResourcePatch, CancellationToken)

Source:
NewRelicMonitorResource.cs

Update a NewRelicMonitorResource

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/NewRelic.Observability/monitors/{monitorName}
  • Operation Id: Monitors_Update
  • Default Api Version: 2022-07-01
  • Resource: NewRelicMonitorResource
public virtual System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.NewRelicObservability.NewRelicMonitorResource>> UpdateAsync (Azure.ResourceManager.NewRelicObservability.Models.NewRelicMonitorResourcePatch patch, System.Threading.CancellationToken cancellationToken);
abstract member UpdateAsync : Azure.ResourceManager.NewRelicObservability.Models.NewRelicMonitorResourcePatch * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.NewRelicObservability.NewRelicMonitorResource>>
override this.UpdateAsync : Azure.ResourceManager.NewRelicObservability.Models.NewRelicMonitorResourcePatch * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.NewRelicObservability.NewRelicMonitorResource>>
Public Overridable Function UpdateAsync (patch As NewRelicMonitorResourcePatch, cancellationToken As CancellationToken) As Task(Of Response(Of NewRelicMonitorResource))

Parameters

patch
NewRelicMonitorResourcePatch

The resource properties to be updated.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Exceptions

patch is null.

Applies to

UpdateAsync(WaitUntil, NewRelicMonitorResourcePatch, CancellationToken)

Source:
NewRelicMonitorResource.cs

Update a NewRelicMonitorResource

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/NewRelic.Observability/monitors/{monitorName}
  • Operation Id: Monitors_Update
  • Default Api Version: 2024-03-01
  • Resource: NewRelicMonitorResource
public virtual System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation<Azure.ResourceManager.NewRelicObservability.NewRelicMonitorResource>> UpdateAsync (Azure.WaitUntil waitUntil, Azure.ResourceManager.NewRelicObservability.Models.NewRelicMonitorResourcePatch patch, System.Threading.CancellationToken cancellationToken = default);
abstract member UpdateAsync : Azure.WaitUntil * Azure.ResourceManager.NewRelicObservability.Models.NewRelicMonitorResourcePatch * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation<Azure.ResourceManager.NewRelicObservability.NewRelicMonitorResource>>
override this.UpdateAsync : Azure.WaitUntil * Azure.ResourceManager.NewRelicObservability.Models.NewRelicMonitorResourcePatch * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation<Azure.ResourceManager.NewRelicObservability.NewRelicMonitorResource>>
Public Overridable Function UpdateAsync (waitUntil As WaitUntil, patch As NewRelicMonitorResourcePatch, Optional cancellationToken As CancellationToken = Nothing) As Task(Of ArmOperation(Of NewRelicMonitorResource))

Parameters

waitUntil
WaitUntil

Completed if the method should wait to return until the long-running operation has completed on the service; Started if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples.

patch
NewRelicMonitorResourcePatch

The resource properties to be updated.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Exceptions

patch is null.

Applies to