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
readonlylogger:Pick<KernelLogger,"warn">
Defined in: packages/prismarine/src/stats/StatsRegistry.ts:20
Where a metric that throws is reported.
platform?
readonlyoptionalplatform?: () =>StatsPlatform
Defined in: packages/prismarine/src/stats/StatsRegistry.ts:22
Reads the host description; node:os unless a test passes its own.
Returns
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
readonlymetrics:ReadonlyMap<string,StatsReading>
Defined in: packages/prismarine/src/stats/StatsRegistry.ts:14
Each metric's reading by metric name, in registration order.
platform
readonlyplatform:StatsPlatform
Defined in: packages/prismarine/src/stats/StatsRegistry.ts:12