/AWS1/CL_BDORATECONFIG¶
Contains the rate configuration for a rate limit metric, specifying the allowed rate and time period.
CONSTRUCTOR¶
IMPORTING¶
Required arguments:¶
iv_rate TYPE /AWS1/RT_DOUBLE_AS_STRING /AWS1/RT_DOUBLE_AS_STRING¶
The rate value for the limit. For request limits, this is the number of requests allowed per period. For token limits, this is the number of tokens allowed per period. For connection limits, this is the number of concurrent connections allowed.
iv_period TYPE /AWS1/BDOPERIOD /AWS1/BDOPERIOD¶
The time period for the rate limit. Valid values:
second—Measures the rate limit over a one-second window.
minute—Measures the rate limit over a one-minute window.
Queryable Attributes¶
rate¶
The rate value for the limit. For request limits, this is the number of requests allowed per period. For token limits, this is the number of tokens allowed per period. For connection limits, this is the number of concurrent connections allowed.
Accessible with the following methods¶
| Method | Description |
|---|---|
GET_RATE() |
Getter for RATE, with configurable default |
ASK_RATE() |
Getter for RATE w/ exceptions if field has no value |
STR_RATE() |
String format for RATE, with configurable default |
HAS_RATE() |
Determine if RATE has a value |
period¶
The time period for the rate limit. Valid values:
second—Measures the rate limit over a one-second window.
minute—Measures the rate limit over a one-minute window.
Accessible with the following methods¶
| Method | Description |
|---|---|
GET_PERIOD() |
Getter for PERIOD, with configurable default |
ASK_PERIOD() |
Getter for PERIOD w/ exceptions if field has no value |
HAS_PERIOD() |
Determine if PERIOD has a value |
Public Local Types In This Class¶
Internal table types, representing arrays and maps of this class, are defined as local types:
TT_RATECONFIGS¶
TYPES TT_RATECONFIGS TYPE STANDARD TABLE OF REF TO /AWS1/CL_BDORATECONFIG WITH DEFAULT KEY
.