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

AppServiceEnvironmentResource.GetHostingEnvironmentDetector 方法

定义

获取宿主环境检测器响应的说明

  • 请求路径/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/hostingEnvironments/{name}/detectors/{detectorName}
  • 操作IdDiagnostics_GetHostingEnvironmentDetectorResponse
public virtual Azure.Response<Azure.ResourceManager.AppService.HostingEnvironmentDetectorResource> GetHostingEnvironmentDetector (string detectorName, DateTimeOffset? startTime = default, DateTimeOffset? endTime = default, string timeGrain = default, System.Threading.CancellationToken cancellationToken = default);
abstract member GetHostingEnvironmentDetector : string * Nullable<DateTimeOffset> * Nullable<DateTimeOffset> * string * System.Threading.CancellationToken -> Azure.Response<Azure.ResourceManager.AppService.HostingEnvironmentDetectorResource>
override this.GetHostingEnvironmentDetector : string * Nullable<DateTimeOffset> * Nullable<DateTimeOffset> * string * System.Threading.CancellationToken -> Azure.Response<Azure.ResourceManager.AppService.HostingEnvironmentDetectorResource>
Public Overridable Function GetHostingEnvironmentDetector (detectorName As String, Optional startTime As Nullable(Of DateTimeOffset) = Nothing, Optional endTime As Nullable(Of DateTimeOffset) = Nothing, Optional timeGrain As String = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Response(Of HostingEnvironmentDetectorResource)

参数

detectorName
String

检测器资源名称。

startTime
Nullable<DateTimeOffset>

开始时间。

endTime
Nullable<DateTimeOffset>

结束时间。

timeGrain
String

时间粒度。

cancellationToken
CancellationToken

要使用的取消标记。

返回

例外

detectorName 是一个空字符串,预期为非空。

detectorName 为 null。

适用于