gatelineAPI reference

The numbers behind a refusal, for the deferral's own words.

interface GovernorRefusal {
    cap: number;
    closedUsd?: number;
    granted: number;
    heldFor?: string;
    limit: GovernorLimit;
    limitUsd?: number;
    names?: Record<string, string>;
    occupied: number;
    projectedUsd?: number;
    repository: string;
    requested: number;
    requestedUsd?: number;
    unseeded?: string[];
    windowMs?: number;
}

Properties

cap: number

The concurrency cap; 0 means uncapped.

closedUsd?: number

The closed share of projectedUsd.

granted: number
heldFor?: string

The repository holding the slot, for turn.

limitUsd?: number

The limit that refused: the machine's, or the repository's ceiling.

names?: Record<string, string>

Display names for the repositories this refusal names (repository, heldFor, unseeded), keyed by repository key (#502). The refusal's words use them; a key with no display name is written as itself.

occupied: number

Slots occupied across the machine when the request was refused.

projectedUsd?: number

Spend projection before this request: closed cost in the window plus open and reserved estimates.

repository: string
requested: number

How many dispatches were asked for, and how many of them were granted.

requestedUsd?: number

What this request would add.

unseeded?: string[]

For concurrency: the repositories that have not yet reported their open dispatches since startup.

windowMs?: number