DefaultRateThrottlingPolicy
Provides a default throttling rate if the delegating throttling policy returns
null.
Usage
{
"name": string,
"type": "ThrottlingFilter",
"config": {
"requestGroupingPolicy": expression,
"throttlingRatePolicy": {
"type": "DefaultRateThrottlingPolicy",
"config": {
"delegateThrottlingRatePolicy": ThrottlingRatePolicy reference,
"defaultRate": {
"numberOfRequests": configuration expression<number>,
"duration": configuration expression<duration>
}
}
}
}
}
Properties
"delegateThrottlingRatePolicy": ThrottlingRatePolicy reference, required-
The policy to which the default policy delegates the throttling rate. The
DefaultRateThrottlingPolicydelegates management of throttling to the policy specified bydelegateThrottlingRatePolicy.If
delegateThrottlingRatePolicyreturnsnull, thedefaultRateis used.For information about policies to use, see MappedThrottlingPolicy and ScriptableThrottlingPolicy.
"defaultRate": object, required-
The default throttling rate to apply if the delegating policy returns
null.
"numberOfRequests": configuration expression<integer>, required-
The number of requests allowed through the filter in the time specified by
"duration".
"duration": configuration expression<duration>, required-
A time interval during which the number of requests passing through the filter is counted.
Example
For an example of how this policy is used, see Example of a Scriptable Throttling Policy.