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

SiteSlotDiagnosticDetectorResource.ExecuteSiteDetectorSlotAsync 方法

定义

执行检测器的说明

  • 请求路径/订阅/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{siteName}/slots/{slot}/诊断/{diagnosticCategory}/detectors/{detectorName}/execute
  • 操作IdDiagnostics_ExecuteSiteDetectorSlot
public virtual System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.AppService.Models.DiagnosticDetectorResponse>> ExecuteSiteDetectorSlotAsync (DateTimeOffset? startTime = default, DateTimeOffset? endTime = default, string timeGrain = default, System.Threading.CancellationToken cancellationToken = default);
abstract member ExecuteSiteDetectorSlotAsync : Nullable<DateTimeOffset> * Nullable<DateTimeOffset> * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.AppService.Models.DiagnosticDetectorResponse>>
override this.ExecuteSiteDetectorSlotAsync : Nullable<DateTimeOffset> * Nullable<DateTimeOffset> * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.AppService.Models.DiagnosticDetectorResponse>>
Public Overridable Function ExecuteSiteDetectorSlotAsync (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 Task(Of Response(Of DiagnosticDetectorResponse))

参数

startTime
Nullable<DateTimeOffset>

开始时间。

endTime
Nullable<DateTimeOffset>

结束时间。

timeGrain
String

时间粒度。

cancellationToken
CancellationToken

要使用的取消标记。

返回

适用于