---
title: "\u30EC\u30FC\u30C8\u30EA\u30DF\u30C3\u30C8\u5236\u5FA1\u306E\u8A2D\u5B9A"
description: "\u30EC\u30FC\u30C8\u30EA\u30DF\u30C3\u30BF\u30FC\u3092\u8A2D\u5B9A\u3057\u3066\u3001\u4E00\u90E8\u307E\u305F\u306F\u3059\u3079\u3066\u306E\u30EA\u30AF\u30A8\u30B9\u30C8\u5143\u304C\u3001\u983B\u7E41\u3059\u304E\u308B\u30EA\u30AF\u30A8\u30B9\u30C8\u3092\u9001\u4FE1\u3059\u308B\u3053\u3068\u3067\u30B5\u30FC\u30D0\u30FC\u306B\u904E\u8CA0\u8377\u3092\u304B\u3051\u306A\u3044\u3088\u3046\u306B\u3059\u308B\u3053\u3068\u304C\u3067\u304D\u307E\u3059\u3002"
language: ja
source_language: en
translation_state: complete
canonical: https://documentation.invantive.eu/ja/docs/application-setting-components/rate-limit-control-configuration
original: https://documentation.invantive.eu/en/docs/application-setting-components/rate-limit-control-configuration
updated: 2026-12-03T18:14:26Z
license: https://documentation.invantive.eu/ja/
---

レートリミッターを設定して、一部またはすべてのリクエスト元が、頻繁すぎるリクエストを送信することでサーバーに過負荷をかけないようにすることができます。

## 例
以下のJSONは、この標準化された構成コンポーネントの例です:
```json
```

## 定義
レートリミッターの制御は、次の2つの設定セットで構成されます:
- slots: 数値による上限を定義します。
- elements: レートリミッターを適用する条件を定義します。
```json
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://invantive.com/schemas/defs/RateLimitControl.schema.json",
  "title": "RateLimitControl",
  "description": "Specification of rate limit control.",
  "type": "object",
  "additionalProperties": false,
  "properties": {
    "RateLimitControlList": {
      "type": ["array", "null"],
      "items": {
        "$ref": "./RateLimitControlElement.schema.json"
      },
      "description": "Ordered list of Rate Limit Controls. First one to apply is used."
    },
    "RateLimitControlSlotList": {
      "type": ["array", "null"],
      "items": {
        "$ref": "./RateLimitControlSlot.schema.json"
      },
      "description": "Set of Rate Limit Control Slots."
    }
  }
}
```

## `RateLimitControlElement`
要素は、適用可能なレートリミッターを指定します。 各レートリミッターは、実際の上限を一元管理する既存のスロットを参照できます。
```json
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://invantive.com/schemas/defs/RateLimitControlElement.schema.json",
  "title": "RateLimitControlElement",
  "type": "object",
  "description": "Specification of a rate limit control element.",
  "additionalProperties": false,
  "properties": {
    "Description": {
      "type": ["string", "null"],
      "description": "Optional description identifying the rate limit control element."
    },
    "Context": {
      "type": ["string", "null"],
      "description": "Optional context limiting the applicability of the rate limit control element. * at the end is a wildcard."
    },
    "Url": {
      "type": ["string", "null"],
      "description": "Optional URL. * at the end is a wildcard.",
      "format": "uri"
    },
    "SlotName": {
      "type": ["string", "null"],
      "description": "Name of slot."
    },
    "ValidFromUtc": {
      "type": ["string", "null"],
      "format": "date-time",
      "description": "Start of validity (UTC). Outside of this period the rate limit control element is not enforced."
    },
    "ValidToUtc": {
      "type": ["string", "null"],
      "format": "date-time",
      "description": "End of validity (UTC). Outside of this period the rate limit control element is not enforced."
    },
    "LogOnCode": {
      "type": ["string", "null"],
      "description": "Log on code."
    },
    "DataContainerId": {
      "type": ["string", "null"],
      "description": "Data container ID."
    },
    "IpAddressClientCidr": {
      "type": ["string", "null"],
      "description": "IP address of the client device in CIDR notation (1.2.3.4/5)."
    }
  }
}
```

## `RateLimitControlSlot`
スロットは、秒、分、時間の各タイムウィンドウで定義されます。 各タイムウィンドウでは、次を指定します:
- アクションの最大数。
- 上限を超えた場合にリクエストごとに適用される遅延時間(ミリ秒)。
- 上限を超えた場合に失敗させるかどうか。
```json
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://invantive.com/schemas/defs/RateLimitControlSlot.schema.json",
  "title": "RateLimitControlSlot",
  "type": "object",
  "additionalProperties": false,
  "properties": {
    "Description": {
      "type": ["string", "null"],
      "description": "Optional description identifying the rate limit slot."
    },
    "Name": {
      "type": ["string", "null"],
      "description": "Name."
    },
    "ActionsPerSecond": {
      "type": ["integer", "null"],
      "description": "Maximum number of actions per second; reset on every second switch."
    },
    "ActionsPerMinute": {
      "type": ["integer", "null"],
      "description": "Maximum number of actions per minute; reset on every minute switch."
    },
    "ActionsPerHour": {
      "type": ["integer", "null"],
      "description": "Maximum number of actions per hour; reset on every hour switch."
    },
    "DelayMsOnOverflowSecond": {
      "type": ["integer", "null"],
      "description": "Number of milliseconds to delay an answer when the second level rate limited is exceeded."
    },
    "DelayMsOnOverflowMinute": {
      "type": ["integer", "null"],
      "description": "Number of milliseconds to delay an answer when the minute level rate limited is exceeded."
    },
    "DelayMsOnOverflowHour": {
      "type": ["integer", "null"],
      "description": "Number of milliseconds to delay an answer when the hour level rate limited is exceeded."
    },
    "FailOnOverflowSecond": {
      "type": "boolean",
      "description": "Whether to fail on an overflow on the second level rate limit.",
      "default": true
    },
    "FailOnOverflowMinute": {
      "type": "boolean",
      "description": "Whether to fail on an overflow on the minute level rate limit.",
      "default": true
    },
    "FailOnOverflowHour": {
      "type": "boolean",
      "description": "Whether to fail on an overflow on the hour level rate limit.",
      "default": true
    }
  }
}
```
