datadog-ux-utils Documentation - v1.0.0
    Preparing search index...

    Type Alias ApiRateGuardConfig

    Configuration options for the API rate guard utility.

    type ApiRateGuardConfig = {
        windowMs: number;
        maxRequests: number;
        blockDurationMs?: number;
        reportDebounceMs?: number;
        sampleRate?: number;
        keyFn?: (input: RequestInfo | URL, init?: RequestInit) => string;
        countOnFailure?: boolean;
        overflowStrategy?: GuardOverflowStrategy;
        allowKey?: (key: string) => boolean;
    }
    Index

    Properties

    windowMs: number
    maxRequests: number
    blockDurationMs?: number
    reportDebounceMs?: number
    sampleRate?: number
    keyFn?: (input: RequestInfo | URL, init?: RequestInit) => string
    countOnFailure?: boolean
    overflowStrategy?: GuardOverflowStrategy
    allowKey?: (key: string) => boolean