/// <summary> /// Purges data in an Application Insights component by a set of user-defined /// filters. /// /// In order to manage system resources, purge requests are throttled at 50 /// requests per hour. You should batch the execution of purge requests by /// sending a single command whose predicate includes all user identities that /// require purging. Use the in operator to specify multiple identities. You /// should run the query prior to using for a purge request to verify that the /// results are expected. /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='resourceGroupName'> /// The name of the resource group. The name is case insensitive. /// </param> /// <param name='resourceName'> /// The name of the Application Insights component resource. /// </param> /// <param name='body'> /// Describes the body of a request to purge data in a single table of an /// Application Insights component /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task <ComponentPurgeResponse> PurgeAsync(this IComponentsOperations operations, string resourceGroupName, string resourceName, ComponentPurgeBody body, CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.PurgeWithHttpMessagesAsync(resourceGroupName, resourceName, body, null, cancellationToken).ConfigureAwait(false)) { return(_result.Body); } }
/// <summary> /// Purges data in an Application Insights component by a set of user-defined /// filters. /// /// In order to manage system resources, purge requests are throttled at 50 /// requests per hour. You should batch the execution of purge requests by /// sending a single command whose predicate includes all user identities that /// require purging. Use the in operator to specify multiple identities. You /// should run the query prior to using for a purge request to verify that the /// results are expected. /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='resourceGroupName'> /// The name of the resource group. The name is case insensitive. /// </param> /// <param name='resourceName'> /// The name of the Application Insights component resource. /// </param> /// <param name='body'> /// Describes the body of a request to purge data in a single table of an /// Application Insights component /// </param> public static ComponentPurgeResponse Purge(this IComponentsOperations operations, string resourceGroupName, string resourceName, ComponentPurgeBody body) { return(operations.PurgeAsync(resourceGroupName, resourceName, body).GetAwaiter().GetResult()); }