DefaultRateThrottlingPolicy
null
.
Usage
{
"name": string,
"type": "ThrottlingFilter",
"config": {
"requestGroupingPolicy": expression,
"throttlingRatePolicy": {
"type": "DefaultRateThrottlingPolicy",
"config": {
"delegateThrottlingRatePolicy": reference or inline declaration,
"defaultRate": {
"numberOfRequests": integer,
"duration": duration string
}
}
}
}
}
Properties
"delegateThrottlingRatePolicy"
: reference, required-
The 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, required-
The default throttling rate to apply if the delegating policy returns
null
.
"numberOfRequests"
: integer, required-
The number of requests allowed through the filter in the time specified by
"duration"
.
"duration"
: duration string, 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.