Counts requests to the same URL over a rolling time window, for use as a condition in IDP rate-limiting and abuse-detection rules. Requests are counted per user, per client IP, or as one global total depending on the configured metric type, and the total includes both in-progress requests (tracked from requestStart to requestEnd) and completed ones, which are bucketed by URL in one-minute buckets and pruned once they fall outside the configured interval.

Group: IDP Rules

Implements: IDPMetric


Properties

PropertyReturnsDescription
requestBucketsMap<String,List<String>>
statusStringHuman-readable summary of this metric's current in-memory state: how many distinct keys are tracked, how many time buckets and counted events exist, and how many requests are currently in progress. Returns a fixed message when nothing has been recorded yet.
titleStringHuman-readable summary of this metric's configuration, showing the interval and how counts are grouped (by user, by IP, or globally).
urlMetricsMap<String,LinkedList<LongBucket>>

Methods

getTitle()

Returns: String

Human-readable summary of this metric's configuration, showing the interval and how counts are grouped (by user, by IP, or globally).

getStatus()

Returns: String

Human-readable summary of this metric's current in-memory state: how many distinct keys are tracked, how many time buckets and counted events exist, and how many requests are currently in progress. Returns a fixed message when nothing has been recorded yet.

To get full access to the Kademi Hub existing customers can login here, or new customers can register here.