# Interface SwarmHealthMetrics

Swarm-level health metrics.

interface SwarmHealthMetrics {
totalAgents: number;
activeAgents: number;
errorAgents: number;
totalInteractions: number;
successRate: number;
avgLatencyMs: number;
bottlenecks: BottleneckInfo[];
clusters: AgentCluster[];
calculatedAt: string;
}

- Defined in packages/nexus-agents/src/observability/swarm-observer-types.ts:174

##### Index

### Properties

totalAgents
activeAgents
errorAgents
totalInteractions
successRate
avgLatencyMs
bottlenecks
clusters
calculatedAt

## Properties

### `Readonly` totalAgents

totalAgents: number

Total agents in swarm

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

### `Readonly` activeAgents

activeAgents: number

Currently active agents

- Defined in packages/nexus-agents/src/observability/swarm-observer-types.ts:178

### `Readonly` errorAgents

errorAgents: number

Agents in error state

- Defined in packages/nexus-agents/src/observability/swarm-observer-types.ts:180

### `Readonly` totalInteractions

totalInteractions: number

Total interactions in time window

- Defined in packages/nexus-agents/src/observability/swarm-observer-types.ts:182

### `Readonly` successRate

successRate: number

Successful interaction rate (0-1)

- Defined in packages/nexus-agents/src/observability/swarm-observer-types.ts:184

### `Readonly` avgLatencyMs

avgLatencyMs: number

Average interaction latency (ms)

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

### `Readonly` bottlenecks

bottlenecks: BottleneckInfo[]

Current bottlenecks

- Defined in packages/nexus-agents/src/observability/swarm-observer-types.ts:188

### `Readonly` clusters

clusters: AgentCluster[]

Detected clusters

- Defined in packages/nexus-agents/src/observability/swarm-observer-types.ts:190

### `Readonly` calculatedAt

calculatedAt: string

Timestamp of metrics calculation

- Defined in packages/nexus-agents/src/observability/swarm-observer-types.ts:192