Skip to content

Dashboard

Defined in: src/plugins/application/dashboard/plugin.ts:158

The Dashboard plugin provides a web interface for monitoring and debugging the Shokupan application. It allows you to view request logs, metrics, and other debugging information. Additionally, this plugin shows the scalar, asyncapi and openapi plugins if they are enabled. It uses WebSockets to push updates to the dashboard in real-time.

This plugin will automatically enable the metrics plugin and the fetch interceptor. These are required for the dashboard to function. The fetch interceptor will track all requests and responses for use in the dashboard and Network tab.

When enabled, enableMiddlewareTracking will automatically be enabled on the application.

new Dashboard(dashboardConfig): Dashboard

Defined in: src/plugins/application/dashboard/plugin.ts:189

DashboardConfig = {}

Dashboard

get db(): DatastoreAdapter

Defined in: src/plugins/application/dashboard/plugin.ts:185

DatastoreAdapter

getHooks(): ShokupanHooks

Defined in: src/plugins/application/dashboard/plugin.ts:982

ShokupanHooks


onInit(app, options?): void

Defined in: src/plugins/application/dashboard/plugin.ts:192

any

string

void

ShokupanPlugin.onInit


recordEdgeMetric(from, to): void

Defined in: src/plugins/application/dashboard/plugin.ts:973

string

string

void


recordNodeMetric(id, type, duration, isError): void

Defined in: src/plugins/application/dashboard/plugin.ts:956

string

string

number

boolean

void