Skip to content

Healthcheck Bun API

Functions

bunRuntimeAdapter

Source
bunRuntimeAdapter() => RuntimeAdapter

Exported from: @nexload-sdk/healthcheck-bun

Public function exported by @nexload-sdk/healthcheck-bun.

bunRuntimeInfoCheck

Source
bunRuntimeInfoCheck(options?: { scopes?: readonly HealthScope[]; }) => HealthCheckDefinition<"bun.runtime">

Exported from: @nexload-sdk/healthcheck-bun

Public function exported by @nexload-sdk/healthcheck-bun.

bunServerMetricsCheck

Source
bunServerMetricsCheck(server: BunServerLike, options?: { scopes?: readonly HealthScope[]; }) => HealthCheckDefinition<"bun.server.metrics">

Exported from: @nexload-sdk/healthcheck-bun

Public function exported by @nexload-sdk/healthcheck-bun.

Interfaces

BunServerLike

Source
interface BunServerLike {
  pendingRequests?: number
  pendingWebSockets?: number
  subscriberCount?: (topic: string) => number
}

Exported from: @nexload-sdk/healthcheck-bun

Public interface exported by @nexload-sdk/healthcheck-bun.

  • bunRuntimeAdapter() returns the core runtime adapter.
  • bunRuntimeInfoCheck(options?) creates the bun.runtime diagnostic check.
  • bunServerMetricsCheck(server, options?) creates bun.server.metrics.
  • BunServerLike is the minimal server shape: pending request/WebSocket counters and optional subscribers.

Source: src/index.ts.