Ratting Interceptor - getheimdall/heimdall GitHub Wiki

Definition

The Ratting interceptor can be used to limit the number of requests. If the amount of requests exceeds the value set with this interceptor any extra request will receive a HTTP 429 status indicating too many requests.

Details

Ratting

Name: Simple name for your interceptor

Description: A simple description for your interceptor

Life Cycle: The appropriate life cycle for the interceptor

  • Life cycles allowed:
    • Api
    • Plan
    • Resource
    • Operation

Content: Configuration of the interceptor

JSON example:

{
  "calls": 20,
  "interval": "MINUTES"
}

calls: amount of allowed calls per interval

interval: time interval, allowed values: SECONDS, MINUTES, HOURS