Frodo Library - v5.0.0-47
    Preparing search index...

    Type Alias LogApiRateLimit

    The state of the rate limit of the Log API as of one answer of the API.

    type LogApiRateLimit = {
        limit: number;
        remaining: number;
        resetAt: number;
    }
    Index
    limit: number

    The number of requests that the API allows in one window, as reported by X-RateLimit-Limit. It is shared by every reader of the logs of the environment.

    remaining: number

    The number of requests that are left in the current window, as reported by X-RateLimit-Remaining. Requests of other readers count against it too.

    resetAt: number

    When the current window resets, in milliseconds since 1970-01-01 UTC on the clock of this machine (X-RateLimit-Reset is in seconds). If the answer carries a Date header and the clock of this machine differs from the one of the server by more than a couple of seconds, the difference is taken out, so that resetAt - Date.now() is the time left in the window either way.