Skip to main content
Defined in: ops/metrics.ts:36 Snapshot returned by bot.metrics(). Plain JSON — safe to serialise.

Properties

startedAt?

Defined in: ops/metrics.ts:38 Epoch ms of the last start(); undefined while the bot is not running.

uptimeMs

Defined in: ops/metrics.ts:40 Ms since the last start(); 0 while the bot is not running.

uptime

Defined in: ops/metrics.ts:42 Human uptime, e.g. '3d 4h', '5m 12s'.

conversations

Defined in: ops/metrics.ts:43

Type Declaration

active
Conversations alive right now (running or waiting for a reply).

flows

Defined in: ops/metrics.ts:48 Per conversation/flow name.

messages

Defined in: ops/metrics.ts:49

in

Inbound messages/interactions accepted (after dedupe and access lists).

out

Outbound sends the provider accepted.

outFailed

Outbound sends the provider rejected.

dropped

Defined in: ops/metrics.ts:57

duplicate

Redelivered inbound events dropped by BotConfig.dedupe.

blocked

Inbound dropped by the blacklist / whitelist.

handoff

Inbound not routed because the chat is in human handoff.

echo?

Echoes of the bot’s own sends dropped by BotConfig.echoFilter (present only with the filter on).

presenceSkipped

Defined in: ops/metrics.ts:71 Presence hints (ctx.typing()/recording(), the automatic typing indicator, ctx.markRead()) skipped because the transport was disconnected (best-effort policy).

typing

markRead


triggered

Defined in: ops/metrics.ts:73 bot.trigger() calls that started a conversation.

errors

Defined in: ops/metrics.ts:75 Errors reported to the bot 'error' channel.