DefaultRateThrottlingPolicy
Provides a default throttling rate if the delegating throttling policy returns null
.
Usage
{ "type": "ThrottlingFilter", "config": { "requestGroupingPolicy": expression, "throttlingRatePolicy": { "type": "DefaultRateThrottlingPolicy", "config": { "delegateThrottlingRatePolicy": reference or inline declaration, "defaultRate": { "numberOfRequests": integer, "duration": duration string } } } } }
Properties
"delegateThrottlingRatePolicy"
: reference, requiredThe policy to which the default policy delegates the throttling rate. The
DefaultRateThrottlingPolicy
delegates management of throttling to the policy specified bydelegateThrottlingRatePolicy
.If
delegateThrottlingRatePolicy
returnsnull
, thedefaultRate
is used.For information about policies to use, see "MappedThrottlingPolicy" and "ScriptableThrottlingPolicy".
"defaultRate"
: object, requiredThe default throttling rate to apply if the delegating policy returns
null
."numberOfRequests"
: integer, requiredThe number of requests allowed through the filter in the time specified by
"duration"
."duration"
: duration string, requiredA time interval during which the number of requests passing through the filter is counted.
For information about supported formats for
duration
, see duration.
Example
For an example of how this policy is used, see "Example of a Scriptable Throttling Policy" .