你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

NewRelicMonitorResource.SwitchBillingAsync 方法

定义

切换 NewRelic 监视器资源的计费。

  • 请求路径/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/NewRelic.Observability/monitors/{monitorName}/switchBilling
  • 操作IdMonitors_SwitchBilling
public virtual System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.NewRelicObservability.NewRelicMonitorResource>> SwitchBillingAsync (Azure.ResourceManager.NewRelicObservability.Models.NewRelicSwitchBillingContent content, System.Threading.CancellationToken cancellationToken = default);
abstract member SwitchBillingAsync : Azure.ResourceManager.NewRelicObservability.Models.NewRelicSwitchBillingContent * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.NewRelicObservability.NewRelicMonitorResource>>
override this.SwitchBillingAsync : Azure.ResourceManager.NewRelicObservability.Models.NewRelicSwitchBillingContent * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.NewRelicObservability.NewRelicMonitorResource>>
Public Overridable Function SwitchBillingAsync (content As NewRelicSwitchBillingContent, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response(Of NewRelicMonitorResource))

参数

content
NewRelicSwitchBillingContent

切换计费请求的详细信息。

cancellationToken
CancellationToken

要使用的取消标记。

返回

例外

content 为 null。

适用于