datadog-ux-utils Documentation - v1.0.0
Preparing search index...
api/rateGuard
ApiRateGuardConfig
Type Alias ApiRateGuardConfig
Configuration options for the API rate guard utility.
type
ApiRateGuardConfig
=
{
windowMs
:
number
;
maxRequests
:
number
;
blockDurationMs
?:
number
;
reportDebounceMs
?:
number
;
sampleRate
?:
number
;
keyFn
?:
(
input
:
RequestInfo
|
URL
,
init
?:
RequestInit
)
=>
string
;
countOnFailure
?:
boolean
;
overflowStrategy
?:
GuardOverflowStrategy
;
allowKey
?:
(
key
:
string
)
=>
boolean
;
}
Index
Properties
window
Ms
max
Requests
block
Duration
Ms?
report
Debounce
Ms?
sample
Rate?
key
Fn?
count
On
Failure?
overflow
Strategy?
allow
Key?
Properties
window
Ms
windowMs
:
number
max
Requests
maxRequests
:
number
Optional
block
Duration
Ms
blockDurationMs
?:
number
Optional
report
Debounce
Ms
reportDebounceMs
?:
number
Optional
sample
Rate
sampleRate
?:
number
Optional
key
Fn
keyFn
?:
(
input
:
RequestInfo
|
URL
,
init
?:
RequestInit
)
=>
string
Optional
count
On
Failure
countOnFailure
?:
boolean
Optional
overflow
Strategy
overflowStrategy
?:
GuardOverflowStrategy
Optional
allow
Key
allowKey
?:
(
key
:
string
)
=>
boolean
Settings
Member Visibility
Inherited
Theme
OS
Light
Dark
On This Page
Properties
window
Ms
max
Requests
block
Duration
Ms
report
Debounce
Ms
sample
Rate
key
Fn
count
On
Failure
overflow
Strategy
allow
Key
datadog-ux-utils Documentation - v1.0.0
Loading...
Configuration options for the API rate guard utility.