Skip to content

API reference / @jsprismarine/prismarine / stats/StatsRegistry

stats/StatsRegistry ​

Classes ​

Interfaces ​

StatsRegistryOptions ​

Defined in: packages/prismarine/src/stats/StatsRegistry.ts:18

Options for a StatsRegistry.

Properties ​

logger ​

readonly logger: Pick<KernelLogger, "warn">

Defined in: packages/prismarine/src/stats/StatsRegistry.ts:20

Where a metric that throws is reported.

platform? ​

readonly optional platform?: () => StatsPlatform

Defined in: packages/prismarine/src/stats/StatsRegistry.ts:22

Reads the host description; node:os unless a test passes its own.

Returns ​

StatsPlatform


StatsSnapshot ​

Defined in: packages/prismarine/src/stats/StatsRegistry.ts:11

What the server reports at one moment: the host, and every metric that had a value.

Properties ​

metrics ​

readonly metrics: ReadonlyMap<string, StatsReading>

Defined in: packages/prismarine/src/stats/StatsRegistry.ts:14

Each metric's reading by metric name, in registration order.

platform ​

readonly platform: StatsPlatform

Defined in: packages/prismarine/src/stats/StatsRegistry.ts:12