# Interface ObserverSessionMetrics

Session-level metrics.

interface ObserverSessionMetrics {
sessionId: string;
startedAt: string;
completedAt?: string;
durationMs: number;
taskCount: number;
successCount: number;
failureCount: number;
tokenUsage: ObserverTokenUsage;
costMetrics: ObserverCostMetrics;
routingDecisions: number;
eventsProcessed: number;
}

- Defined in packages/nexus-agents/src/agents/observability/orchestration-observer-types.ts:86

##### Index

### Properties

sessionId
startedAt
completedAt?
durationMs
taskCount
successCount
failureCount
tokenUsage
costMetrics
routingDecisions
eventsProcessed

## Properties

### `Readonly` sessionId

sessionId: string

- Defined in packages/nexus-agents/src/agents/observability/orchestration-observer-types.ts:87

### startedAt

startedAt: string

- Defined in packages/nexus-agents/src/agents/observability/orchestration-observer-types.ts:88

### `Optional` completedAt

completedAt?: string

- Defined in packages/nexus-agents/src/agents/observability/orchestration-observer-types.ts:89

### durationMs

durationMs: number

- Defined in packages/nexus-agents/src/agents/observability/orchestration-observer-types.ts:90

### taskCount

taskCount: number

- Defined in packages/nexus-agents/src/agents/observability/orchestration-observer-types.ts:91

### successCount

successCount: number

- Defined in packages/nexus-agents/src/agents/observability/orchestration-observer-types.ts:92

### failureCount

failureCount: number

- Defined in packages/nexus-agents/src/agents/observability/orchestration-observer-types.ts:93

### tokenUsage

tokenUsage: ObserverTokenUsage

- Defined in packages/nexus-agents/src/agents/observability/orchestration-observer-types.ts:94

### costMetrics

costMetrics: ObserverCostMetrics

- Defined in packages/nexus-agents/src/agents/observability/orchestration-observer-types.ts:95

### routingDecisions

routingDecisions: number

- Defined in packages/nexus-agents/src/agents/observability/orchestration-observer-types.ts:96

### eventsProcessed

eventsProcessed: number

- Defined in packages/nexus-agents/src/agents/observability/orchestration-observer-types.ts:97