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.
Properties
Section titled “Properties”errorsByCode
Section titled “errorsByCode”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
Section titled “identify”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
Section titled “invalidBudget”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
Section titled “shared429”shared429:
number
used:
number
process
Section titled “process”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
Section titled “rateLimits”rateLimits:
object[]
Defined in: packages/client/src/results.ts:385
Rate limits the bot ran into. maxRetryAfter is in milliseconds.
count:
number
maxRetryAfter
Section titled “maxRetryAfter”maxRetryAfter:
number|null
route:
string
scope:
string
routes
Section titled “routes”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
Section titled “failures”failures:
number|null
method
Section titled “method”method:
string
p95Ms:
number|null
retries
Section titled “retries”retries:
number
route:
string
sdkInstances
Section titled “sdkInstances”sdkInstances:
SdkInstance[]
Defined in: packages/client/src/results.ts:409
shardEvents
Section titled “shardEvents”shardEvents:
object[]
Defined in: packages/client/src/results.ts:401
The last 50 gateway state changes in the range.
closeCode
Section titled “closeCode”closeCode:
number|null
replayed
Section titled “replayed”replayed:
number|null
shard:
number
state:
string
ts:
string
shards
Section titled “shards”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
Section titled “totals”totals:
object
Defined in: packages/client/src/results.ts:362
Every figure is null when nothing ran in the range.
errors
Section titled “errors”errors:
number|null
missedDeadlines
Section titled “missedDeadlines”missedDeadlines:
number|null
Runs that answered after 3 seconds or not at all.
noResponse
Section titled “noResponse”noResponse:
number|null
over3sRate
Section titled “over3sRate”over3sRate:
number|null
p50Ms:
number|null
p95Ms:
number|null
p99Ms:
number|null
runs:
number|null