/// <summary> /// Execute Analysis /// </summary> /// <remarks> /// Execute Analysis /// </remarks> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='resourceGroupName'> /// Name of the resource group to which the resource belongs. /// </param> /// <param name='siteName'> /// Site Name /// </param> /// <param name='diagnosticCategory'> /// Category Name /// </param> /// <param name='analysisName'> /// Analysis Resource Name /// </param> /// <param name='startTime'> /// Start Time /// </param> /// <param name='endTime'> /// End Time /// </param> /// <param name='timeGrain'> /// Time Grain /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task <DiagnosticAnalysisInner> ExecuteSiteAnalysisAsync(this IDiagnosticsOperations operations, string resourceGroupName, string siteName, string diagnosticCategory, string analysisName, System.DateTime?startTime = default(System.DateTime?), System.DateTime?endTime = default(System.DateTime?), string timeGrain = default(string), CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.ExecuteSiteAnalysisWithHttpMessagesAsync(resourceGroupName, siteName, diagnosticCategory, analysisName, startTime, endTime, timeGrain, null, cancellationToken).ConfigureAwait(false)) { return(_result.Body); } }
/// <summary> /// Get Site Analysis /// </summary> /// <remarks> /// Get Site Analysis /// </remarks> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='resourceGroupName'> /// Name of the resource group to which the resource belongs. /// </param> /// <param name='siteName'> /// Site Name /// </param> /// <param name='diagnosticCategory'> /// Diagnostic Category /// </param> /// <param name='analysisName'> /// Analysis Name /// </param> /// <param name='slot'> /// Slot - optional /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task <DiagnosticAnalysisInner> GetSiteAnalysisSlotAsync(this IDiagnosticsOperations operations, string resourceGroupName, string siteName, string diagnosticCategory, string analysisName, string slot, CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.GetSiteAnalysisSlotWithHttpMessagesAsync(resourceGroupName, siteName, diagnosticCategory, analysisName, slot, null, cancellationToken).ConfigureAwait(false)) { return(_result.Body); } }
/// <summary> /// Get Detector /// </summary> /// <remarks> /// Get Detector /// </remarks> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='resourceGroupName'> /// Name of the resource group to which the resource belongs. /// </param> /// <param name='siteName'> /// Site Name /// </param> /// <param name='diagnosticCategory'> /// Diagnostic Category /// </param> /// <param name='detectorName'> /// Detector Name /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task <IPage <DetectorDefinition> > GetSiteDetectorAsync(this IDiagnosticsOperations operations, string resourceGroupName, string siteName, string diagnosticCategory, string detectorName, CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.GetSiteDetectorWithHttpMessagesAsync(resourceGroupName, siteName, diagnosticCategory, detectorName, null, cancellationToken).ConfigureAwait(false)) { return(_result.Body); } }
/// <summary> /// Lists all available Compute diagnostics for a subscription in a location. /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='nextPageLink'> /// The NextLink from the previous successful call to List operation. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task <IPage <ComputeDiagnosticBase> > ListNextAsync(this IDiagnosticsOperations operations, string nextPageLink, CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.ListNextWithHttpMessagesAsync(nextPageLink, null, cancellationToken).ConfigureAwait(false)) { return(_result.Body); } }
/// <summary> /// Get Detector /// </summary> /// <remarks> /// Get Detector /// </remarks> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='nextPageLink'> /// The NextLink from the previous successful call to List operation. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task <IPage <DetectorDefinition> > GetSiteDetectorNextAsync(this IDiagnosticsOperations operations, string nextPageLink, CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.GetSiteDetectorNextWithHttpMessagesAsync(nextPageLink, null, cancellationToken).ConfigureAwait(false)) { return(_result.Body); } }
/// <summary> /// List Hosting Environment Detector Responses /// </summary> /// <remarks> /// List Hosting Environment Detector Responses /// </remarks> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='nextPageLink'> /// The NextLink from the previous successful call to List operation. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task <IPage <DetectorResponseInner> > ListHostingEnvironmentDetectorResponsesNextAsync(this IDiagnosticsOperations operations, string nextPageLink, CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.ListHostingEnvironmentDetectorResponsesNextWithHttpMessagesAsync(nextPageLink, null, cancellationToken).ConfigureAwait(false)) { return(_result.Body); } }
/// <summary> /// Get Hosting Environment Detector Response /// </summary> /// <remarks> /// Get Hosting Environment Detector Response /// </remarks> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='resourceGroupName'> /// Name of the resource group to which the resource belongs. /// </param> /// <param name='name'> /// App Service Environment Name /// </param> /// <param name='detectorName'> /// Detector Resource Name /// </param> /// <param name='startTime'> /// Start Time /// </param> /// <param name='endTime'> /// End Time /// </param> /// <param name='timeGrain'> /// Time Grain /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task <DetectorResponseInner> GetHostingEnvironmentDetectorResponseAsync(this IDiagnosticsOperations operations, string resourceGroupName, string name, string detectorName, System.DateTime?startTime = default(System.DateTime?), System.DateTime?endTime = default(System.DateTime?), string timeGrain = default(string), CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.GetHostingEnvironmentDetectorResponseWithHttpMessagesAsync(resourceGroupName, name, detectorName, startTime, endTime, timeGrain, null, cancellationToken).ConfigureAwait(false)) { return(_result.Body); } }
/// <summary> /// List Site Detector Responses /// </summary> /// <remarks> /// List Site Detector Responses /// </remarks> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='resourceGroupName'> /// Name of the resource group to which the resource belongs. /// </param> /// <param name='siteName'> /// Site Name /// </param> /// <param name='slot'> /// Slot Name /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task <IPage <DetectorResponseInner> > ListSiteDetectorResponsesSlotAsync(this IDiagnosticsOperations operations, string resourceGroupName, string siteName, string slot, CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.ListSiteDetectorResponsesSlotWithHttpMessagesAsync(resourceGroupName, siteName, slot, null, cancellationToken).ConfigureAwait(false)) { return(_result.Body); } }
/// <summary> /// Lists all available Compute diagnostics for a subscription in a location. /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='nextPageLink'> /// The NextLink from the previous successful call to List operation. /// </param> public static IPage <ComputeDiagnosticBase> ListNext(this IDiagnosticsOperations operations, string nextPageLink) { return(operations.ListNextAsync(nextPageLink).GetAwaiter().GetResult()); }
/// <summary> /// Lists all available Compute diagnostics for a subscription in a location. /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='location'> /// The location used to execute the diagnostic operation. /// </param> public static IPage <ComputeDiagnosticBase> List(this IDiagnosticsOperations operations, string location) { return(operations.ListAsync(location).GetAwaiter().GetResult()); }
/// <summary> /// Get Site Analyses /// </summary> /// <remarks> /// Description for Get Site Analyses /// </remarks> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='nextPageLink'> /// The NextLink from the previous successful call to List operation. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task <IPage <AnalysisDefinitionInner> > ListSiteAnalysesSlotNextAsync(this IDiagnosticsOperations operations, string nextPageLink, CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.ListSiteAnalysesSlotNextWithHttpMessagesAsync(nextPageLink, null, cancellationToken).ConfigureAwait(false)) { return(_result.Body); } }
/// <summary> /// Get Site Analyses /// </summary> /// <remarks> /// Description for Get Site Analyses /// </remarks> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='resourceGroupName'> /// Name of the resource group to which the resource belongs. /// </param> /// <param name='siteName'> /// Site Name /// </param> /// <param name='diagnosticCategory'> /// Diagnostic Category /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task <IPage <AnalysisDefinitionInner> > ListSiteAnalysesAsync(this IDiagnosticsOperations operations, string resourceGroupName, string siteName, string diagnosticCategory, CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.ListSiteAnalysesWithHttpMessagesAsync(resourceGroupName, siteName, diagnosticCategory, null, cancellationToken).ConfigureAwait(false)) { return(_result.Body); } }