Permalink
Cannot retrieve contributors at this time
28 lines (28 sloc)
1.34 KB
Name already in use
A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
codeql-action/node_modules/@azure/ms-rest-js/es/lib/policies/throttlingRetryPolicy.d.ts
Go to fileThis commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { BaseRequestPolicy, RequestPolicy, RequestPolicyOptionsLike, RequestPolicyFactory } from "./requestPolicy"; | |
import { WebResourceLike } from "../webResource"; | |
import { HttpOperationResponse } from "../httpOperationResponse"; | |
/** | |
* Options that control how to retry on response status code 429. | |
*/ | |
export interface ThrottlingRetryOptions { | |
/** | |
* The maximum number of retry attempts. Defaults to 3. | |
*/ | |
maxRetries?: number; | |
} | |
export declare function throttlingRetryPolicy(maxRetries?: number): RequestPolicyFactory; | |
/** | |
* To learn more, please refer to | |
* https://docs.microsoft.com/en-us/azure/azure-resource-manager/resource-manager-request-limits, | |
* https://docs.microsoft.com/en-us/azure/azure-subscription-service-limits and | |
* https://docs.microsoft.com/en-us/azure/virtual-machines/troubleshooting/troubleshooting-throttling-errors | |
*/ | |
export declare class ThrottlingRetryPolicy extends BaseRequestPolicy { | |
private retryLimit; | |
constructor(nextPolicy: RequestPolicy, options: RequestPolicyOptionsLike, retryLimit: number); | |
sendRequest(httpRequest: WebResourceLike): Promise<HttpOperationResponse>; | |
private retry; | |
static parseRetryAfterHeader(headerValue: string): number | undefined; | |
static parseDateRetryAfterHeader(headerValue: string): number | undefined; | |
} | |
//# sourceMappingURL=throttlingRetryPolicy.d.ts.map |