Skip to content

ReliabilityResult

Defined in: packages/client/src/results.ts:358

Answer to a reliability query. Prefix commands, which have no response or deadline, are left out.

errorsByCode: KeyCount[]

Defined in: packages/client/src/results.ts:374

Failed runs by Discord API error code or, without one, by error class.


from: string

Defined in: packages/client/src/results.ts:360

Where counting single events starts: the range’s from, or later when they are no longer kept that far back.


identify: { libVersion: string | null; nodeVersion: string | null; release: string | null; remaining: number | null; sdkVersion: string | null; total: number | null; ts: string; } | null

Defined in: packages/client/src/results.ts:389

Gateway session starts left today, and the versions the bot runs. null until the bot has reported them.


invalidBudget: object

Defined in: packages/client/src/results.ts:387

401, 403 and 429 answers in the last 10 minutes, against Discord’s limit of 10,000.

limit: number

share: number

shared429: number

used: number


process: Partial<Record<"eventloop.p99_ms" | "memory.rss_bytes" | "memory.heap_used_bytes" | "cache.users" | "cache.channels", number>>

Defined in: packages/client/src/results.ts:403

The bot’s latest process gauges, added up over its processes (the worst process for event-loop delay).


rateLimits: object[]

Defined in: packages/client/src/results.ts:385

Rate limits the bot ran into. maxRetryAfter is in milliseconds.

count: number

maxRetryAfter: number | null

route: string

scope: string


routes: object[]

Defined in: packages/client/src/results.ts:376

REST calls by method and route. failures are answers of 400 and above.

calls: number

failures: number | null

method: string

p95Ms: number | null

retries: number

route: string


sdkInstances: SdkInstance[]

Defined in: packages/client/src/results.ts:409


shardEvents: object[]

Defined in: packages/client/src/results.ts:401

The last 50 gateway state changes in the range.

closeCode: number | null

replayed: number | null

shard: number

state: string

ts: string


shards: object[]

Defined in: packages/client/src/results.ts:399

Each shard’s latest ping in the last day. stale when it is more than 2 minutes old.

ping: number

shard: number

stale: boolean

ts: string


totals: object

Defined in: packages/client/src/results.ts:362

Every figure is null when nothing ran in the range.

errors: number | null

missedDeadlines: number | null

Runs that answered after 3 seconds or not at all.

noResponse: number | null

over3sRate: number | null

p50Ms: number | null

p95Ms: number | null

p99Ms: number | null

runs: number | null