namespace ZB.MOM.WW.MxGateway.Server.Security.Authorization;
///
/// Outcome of an admission check for one authentication attempt.
///
public enum ApiKeyThrottleDecision
{
/// No layer is over its limit; the request proceeds to verification normally.
Allowed = 0,
///
/// At least one layer is over its limit, but this request took the probe slot for the current
/// interval and proceeds to verification. A success resets every layer it passed.
///
ProbeAdmitted = 1,
///
/// The (transport peer, key id) partition is over its limit and no probe slot is
/// available; the request is rejected before the verification store read.
///
ThrottledByPeer = 2,
///
/// The cross-peer aggregate for the presented key id is over its limit and no probe slot is
/// available; the request is rejected before the verification store read.
///
ThrottledByAggregate = 3,
}