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

NewRelicMonitorResource.GetAppServicesAsync 方法

定义

列出 NewRelic 资源当前正在监视的应用服务资源。

  • 请求路径/订阅/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/NewRelic.Observability/monitors/{monitorName}/listAppServices
  • 操作IdMonitors_ListAppServices
public virtual Azure.AsyncPageable<Azure.ResourceManager.NewRelicObservability.Models.NewRelicObservabilityAppServiceInfo> GetAppServicesAsync (Azure.ResourceManager.NewRelicObservability.Models.NewRelicAppServicesGetContent content, System.Threading.CancellationToken cancellationToken = default);
abstract member GetAppServicesAsync : Azure.ResourceManager.NewRelicObservability.Models.NewRelicAppServicesGetContent * System.Threading.CancellationToken -> Azure.AsyncPageable<Azure.ResourceManager.NewRelicObservability.Models.NewRelicObservabilityAppServiceInfo>
override this.GetAppServicesAsync : Azure.ResourceManager.NewRelicObservability.Models.NewRelicAppServicesGetContent * System.Threading.CancellationToken -> Azure.AsyncPageable<Azure.ResourceManager.NewRelicObservability.Models.NewRelicObservabilityAppServiceInfo>
Public Overridable Function GetAppServicesAsync (content As NewRelicAppServicesGetContent, Optional cancellationToken As CancellationToken = Nothing) As AsyncPageable(Of NewRelicObservabilityAppServiceInfo)

参数

content
NewRelicAppServicesGetContent

应用服务获取请求的详细信息。

cancellationToken
CancellationToken

要使用的取消标记。

返回

的异步集合 NewRelicObservabilityAppServiceInfo ,可能需要循环访问多个服务请求。

例外

content 为 null。

适用于