# Interface IDashboardRenderer

Dashboard renderer interface.

interface IDashboardRenderer {
render(snapshot: DashboardSnapshot): string;
renderHealth(health: SwarmHealthMetrics): string;
renderAgents(agents: AgentStatus[]): string;
renderGraph(graph: GraphSummary): string;
renderActivity(activity: ActivityItem[]): string;
renderBottlenecks(bottlenecks: BottleneckInfo[]): string;
renderClusters(clusters: AgentCluster[]): string;
}

#### Implemented by

- CompactDashboardRenderer
- JsonDashboardRenderer
- TextDashboardRenderer

- Defined in packages/nexus-agents/src/observability/dashboard-types.ts:167

##### Index

### Methods

render
renderHealth
renderAgents
renderGraph
renderActivity
renderBottlenecks
renderClusters

## Methods

### render

- render(snapshot: DashboardSnapshot): string

  Render the dashboard snapshot to the configured format.

  #### Parameters

  - snapshot: DashboardSnapshot

  #### Returns string

  - Defined in packages/nexus-agents/src/observability/dashboard-types.ts:171

### renderHealth

- renderHealth(health: SwarmHealthMetrics): string

  Render just the health section.

  #### Parameters

  - health: SwarmHealthMetrics

  #### Returns string

  - Defined in packages/nexus-agents/src/observability/dashboard-types.ts:176

### renderAgents

- renderAgents(agents: AgentStatus[]): string

  Render the agent status table.

  #### Parameters

  - agents: AgentStatus[]

  #### Returns string

  - Defined in packages/nexus-agents/src/observability/dashboard-types.ts:181

### renderGraph

- renderGraph(graph: GraphSummary): string

  Render the interaction graph.

  #### Parameters

  - graph: GraphSummary

  #### Returns string

  - Defined in packages/nexus-agents/src/observability/dashboard-types.ts:186

### renderActivity

- renderActivity(activity: ActivityItem[]): string

  Render the activity feed.

  #### Parameters

  - activity: ActivityItem[]

  #### Returns string

  - Defined in packages/nexus-agents/src/observability/dashboard-types.ts:191

### renderBottlenecks

- renderBottlenecks(bottlenecks: BottleneckInfo[]): string

  Render bottleneck warnings.

  #### Parameters

  - bottlenecks: BottleneckInfo[]

  #### Returns string

  - Defined in packages/nexus-agents/src/observability/dashboard-types.ts:196

### renderClusters

- renderClusters(clusters: AgentCluster[]): string

  Render cluster analysis.

  #### Parameters

  - clusters: AgentCluster[]

  #### Returns string

  - Defined in packages/nexus-agents/src/observability/dashboard-types.ts:201