Class ResourceManagerThrottlingInfo
java.lang.Object
com.azure.resourcemanager.resources.fluentcore.utils.ResourceManagerThrottlingInfo
The class to collect all throttling info from response header.
Some service has different rate limit but not visible in response header, like network/storage.
-
Constructor Summary
ConstructorsConstructorDescriptionResourceManagerThrottlingInfo(com.azure.core.http.HttpHeaders headers) Creates the throttling info class from response headers -
Method Summary
Modifier and TypeMethodDescriptionfromHeaders(com.azure.core.http.HttpHeaders headers) Creates the throttling info class from response headersrefer https://docs.microsoft.com/azure/azure-resource-manager/management/request-limits-and-throttlingrefer https://docs.microsoft.com/azure/virtual-machines/troubleshooting/troubleshooting-throttling-errors
-
Constructor Details
-
ResourceManagerThrottlingInfo
public ResourceManagerThrottlingInfo(com.azure.core.http.HttpHeaders headers) Creates the throttling info class from response headers- Parameters:
headers- the response headers
-
-
Method Details
-
fromHeaders
Creates the throttling info class from response headers- Parameters:
headers- the response headers- Returns:
- the ResourceManagerThrottlingInfo class
-
getRateLimit
- Returns:
- the smallest rate limit or empty if none of the headers are valid
-
getRateLimits
refer https://docs.microsoft.com/azure/azure-resource-manager/management/request-limits-and-throttling- Returns:
- all headers associated with rate limit
-
getResourceRateLimit
refer https://docs.microsoft.com/azure/virtual-machines/troubleshooting/troubleshooting-throttling-errors- Returns:
- a specific rate limit header value from compute
-