[**@s4ai/core Documentation v0.3.23**](../../../README.md)

***

[@s4ai/core Documentation](../../../modules.md) / [@s4ai/core](../README.md) / SystemHealthMonitor

# Class: SystemHealthMonitor

Defined in: monitoring/system-health-monitor.js:13

## Constructors

### Constructor

> **new SystemHealthMonitor**(): `SystemHealthMonitor`

Defined in: monitoring/system-health-monitor.js:14

#### Returns

`SystemHealthMonitor`

## Properties

### check\_interval

> **check\_interval**: `number`

Defined in: monitoring/system-health-monitor.js:24

***

### health\_checks

> **health\_checks**: `object`

Defined in: monitoring/system-health-monitor.js:15

#### api\_latency

> **api\_latency**: `null` = `null`

#### database

> **database**: `null` = `null`

#### mlm\_metrics

> **mlm\_metrics**: `null` = `null`

#### qdd\_metrics

> **qdd\_metrics**: `null` = `null`

#### query\_performance

> **query\_performance**: `null` = `null`

***

### last\_check

> **last\_check**: \{ `bottlenecks`: \{ `bottleneck_count`: `number`; `bottlenecks`: `any`[]; `critical_count`: `number`; `high_count`: `number`; `overall_system_status`: `string`; \}; `health`: \{ `dashboard_performance`: \{ `message`: `string`; `optimization_percent?`: `undefined`; `query_count?`: `undefined`; `recommendation?`: `undefined`; `slow_dashboard_queries?`: `undefined`; `status`: `string`; `target_ms?`: `undefined`; `total_load_time_ms?`: `undefined`; \} \| \{ `message?`: `undefined`; `optimization_percent`: `any`; `query_count`: `number`; `recommendation`: `string` \| `null`; `slow_dashboard_queries`: `any`; `status`: `string`; `target_ms`: `number`; `total_load_time_ms`: `any`; \}; `database`: \{ `connection_pool_active`: `any`; `connection_pool_idle`: `any`; `error?`: `undefined`; `latency_ms`: `number`; `recommendation`: `string` \| `null`; `status`: `string`; `target_ms`: `number`; \} \| \{ `connection_pool_active?`: `undefined`; `connection_pool_idle?`: `undefined`; `error`: `any`; `latency_ms`: `number`; `recommendation`: `string`; `status`: `string`; `target_ms?`: `undefined`; \}; `mlm_metrics`: \{ `error?`: `undefined`; `high_confidence_patterns?`: `undefined`; `message`: `string`; `pattern_accuracy?`: `undefined`; `patterns_by_domain?`: `undefined`; `recommendation?`: `undefined`; `status`: `string`; `target_accuracy?`: `undefined`; `total_patterns?`: `undefined`; \} \| \{ `error?`: `undefined`; `high_confidence_patterns`: `any`; `message?`: `undefined`; `pattern_accuracy`: `string`; `patterns_by_domain`: `object`[]; `recommendation`: `string` \| `null`; `status`: `string`; `target_accuracy`: `string`; `total_patterns`: `any`; \} \| \{ `error`: `any`; `high_confidence_patterns?`: `undefined`; `message?`: `undefined`; `pattern_accuracy?`: `undefined`; `patterns_by_domain?`: `undefined`; `recommendation?`: `undefined`; `status`: `string`; `target_accuracy?`: `undefined`; `total_patterns?`: `undefined`; \}; `qdd_metrics`: \{ `avg_confidence?`: `undefined`; `decision_count_24h?`: `undefined`; `decision_types?`: `undefined`; `error?`: `undefined`; `low_confidence_decisions?`: `undefined`; `message`: `string`; `recommendation?`: `undefined`; `status`: `string`; `target_confidence?`: `undefined`; \} \| \{ `avg_confidence`: `string`; `decision_count_24h`: `any`; `decision_types`: `string`[]; `error?`: `undefined`; `low_confidence_decisions`: `object`[]; `message?`: `undefined`; `recommendation`: `string` \| `null`; `status`: `string`; `target_confidence`: `string`; \} \| \{ `avg_confidence?`: `undefined`; `decision_count_24h?`: `undefined`; `decision_types?`: `undefined`; `error`: `any`; `low_confidence_decisions?`: `undefined`; `message?`: `undefined`; `recommendation?`: `undefined`; `status`: `string`; `target_confidence?`: `undefined`; \}; `query_performance`: \{ `avg_query_time_ms?`: `undefined`; `message`: `string`; `recommendation?`: `undefined`; `slow_queries_percent?`: `undefined`; `slowest_queries?`: `undefined`; `status`: `string`; `target_ms?`: `undefined`; `total_queries_monitored?`: `undefined`; \} \| \{ `avg_query_time_ms`: `any`; `message?`: `undefined`; `recommendation`: `string` \| `null`; `slow_queries_percent`: `string`; `slowest_queries`: `object`[]; `status`: `string`; `target_ms`: `number`; `total_queries_monitored`: `any`; \}; \}; `recovery_suggestions`: `any`[]; `summary`: \{ `check_duration_ms`: `number`; `critical_components`: `string`[]; `degraded_components`: `string`[]; `healthy_components`: `string`[]; `overall_status`: `string`; \}; `timestamp`: `string`; \} \| `null`

Defined in: monitoring/system-health-monitor.js:23

## Methods

### checkDashboardHealth()

> **checkDashboardHealth**(): `Promise`\<\{ `message`: `string`; `optimization_percent?`: `undefined`; `query_count?`: `undefined`; `recommendation?`: `undefined`; `slow_dashboard_queries?`: `undefined`; `status`: `string`; `target_ms?`: `undefined`; `total_load_time_ms?`: `undefined`; \} \| \{ `message?`: `undefined`; `optimization_percent`: `any`; `query_count`: `number`; `recommendation`: `string` \| `null`; `slow_dashboard_queries`: `any`; `status`: `string`; `target_ms`: `number`; `total_load_time_ms`: `any`; \}\>

Defined in: monitoring/system-health-monitor.js:185

Dashboard load performance

#### Returns

`Promise`\<\{ `message`: `string`; `optimization_percent?`: `undefined`; `query_count?`: `undefined`; `recommendation?`: `undefined`; `slow_dashboard_queries?`: `undefined`; `status`: `string`; `target_ms?`: `undefined`; `total_load_time_ms?`: `undefined`; \} \| \{ `message?`: `undefined`; `optimization_percent`: `any`; `query_count`: `number`; `recommendation`: `string` \| `null`; `slow_dashboard_queries`: `any`; `status`: `string`; `target_ms`: `number`; `total_load_time_ms`: `any`; \}\>

***

### checkDatabaseHealth()

> **checkDatabaseHealth**(): `Promise`\<\{ `connection_pool_active`: `any`; `connection_pool_idle`: `any`; `error?`: `undefined`; `latency_ms`: `number`; `recommendation`: `string` \| `null`; `status`: `string`; `target_ms`: `number`; \} \| \{ `connection_pool_active?`: `undefined`; `connection_pool_idle?`: `undefined`; `error`: `any`; `latency_ms`: `number`; `recommendation`: `string`; `status`: `string`; `target_ms?`: `undefined`; \}\>

Defined in: monitoring/system-health-monitor.js:30

Database connectivity health

#### Returns

`Promise`\<\{ `connection_pool_active`: `any`; `connection_pool_idle`: `any`; `error?`: `undefined`; `latency_ms`: `number`; `recommendation`: `string` \| `null`; `status`: `string`; `target_ms`: `number`; \} \| \{ `connection_pool_active?`: `undefined`; `connection_pool_idle?`: `undefined`; `error`: `any`; `latency_ms`: `number`; `recommendation`: `string`; `status`: `string`; `target_ms?`: `undefined`; \}\>

***

### checkMLMHealth()

> **checkMLMHealth**(): `Promise`\<\{ `error?`: `undefined`; `high_confidence_patterns?`: `undefined`; `message`: `string`; `pattern_accuracy?`: `undefined`; `patterns_by_domain?`: `undefined`; `recommendation?`: `undefined`; `status`: `string`; `target_accuracy?`: `undefined`; `total_patterns?`: `undefined`; \} \| \{ `error?`: `undefined`; `high_confidence_patterns`: `any`; `message?`: `undefined`; `pattern_accuracy`: `string`; `patterns_by_domain`: `object`[]; `recommendation`: `string` \| `null`; `status`: `string`; `target_accuracy`: `string`; `total_patterns`: `any`; \} \| \{ `error`: `any`; `high_confidence_patterns?`: `undefined`; `message?`: `undefined`; `pattern_accuracy?`: `undefined`; `patterns_by_domain?`: `undefined`; `recommendation?`: `undefined`; `status`: `string`; `target_accuracy?`: `undefined`; `total_patterns?`: `undefined`; \}\>

Defined in: monitoring/system-health-monitor.js:144

MLM pattern learning health

#### Returns

`Promise`\<\{ `error?`: `undefined`; `high_confidence_patterns?`: `undefined`; `message`: `string`; `pattern_accuracy?`: `undefined`; `patterns_by_domain?`: `undefined`; `recommendation?`: `undefined`; `status`: `string`; `target_accuracy?`: `undefined`; `total_patterns?`: `undefined`; \} \| \{ `error?`: `undefined`; `high_confidence_patterns`: `any`; `message?`: `undefined`; `pattern_accuracy`: `string`; `patterns_by_domain`: `object`[]; `recommendation`: `string` \| `null`; `status`: `string`; `target_accuracy`: `string`; `total_patterns`: `any`; \} \| \{ `error`: `any`; `high_confidence_patterns?`: `undefined`; `message?`: `undefined`; `pattern_accuracy?`: `undefined`; `patterns_by_domain?`: `undefined`; `recommendation?`: `undefined`; `status`: `string`; `target_accuracy?`: `undefined`; `total_patterns?`: `undefined`; \}\>

***

### checkQDDHealth()

> **checkQDDHealth**(): `Promise`\<\{ `avg_confidence?`: `undefined`; `decision_count_24h?`: `undefined`; `decision_types?`: `undefined`; `error?`: `undefined`; `low_confidence_decisions?`: `undefined`; `message`: `string`; `recommendation?`: `undefined`; `status`: `string`; `target_confidence?`: `undefined`; \} \| \{ `avg_confidence`: `string`; `decision_count_24h`: `any`; `decision_types`: `string`[]; `error?`: `undefined`; `low_confidence_decisions`: `object`[]; `message?`: `undefined`; `recommendation`: `string` \| `null`; `status`: `string`; `target_confidence`: `string`; \} \| \{ `avg_confidence?`: `undefined`; `decision_count_24h?`: `undefined`; `decision_types?`: `undefined`; `error`: `any`; `low_confidence_decisions?`: `undefined`; `message?`: `undefined`; `recommendation?`: `undefined`; `status`: `string`; `target_confidence?`: `undefined`; \}\>

Defined in: monitoring/system-health-monitor.js:100

Q-DD decision cycle health

#### Returns

`Promise`\<\{ `avg_confidence?`: `undefined`; `decision_count_24h?`: `undefined`; `decision_types?`: `undefined`; `error?`: `undefined`; `low_confidence_decisions?`: `undefined`; `message`: `string`; `recommendation?`: `undefined`; `status`: `string`; `target_confidence?`: `undefined`; \} \| \{ `avg_confidence`: `string`; `decision_count_24h`: `any`; `decision_types`: `string`[]; `error?`: `undefined`; `low_confidence_decisions`: `object`[]; `message?`: `undefined`; `recommendation`: `string` \| `null`; `status`: `string`; `target_confidence`: `string`; \} \| \{ `avg_confidence?`: `undefined`; `decision_count_24h?`: `undefined`; `decision_types?`: `undefined`; `error`: `any`; `low_confidence_decisions?`: `undefined`; `message?`: `undefined`; `recommendation?`: `undefined`; `status`: `string`; `target_confidence?`: `undefined`; \}\>

***

### checkQueryPerformance()

> **checkQueryPerformance**(): `Promise`\<\{ `avg_query_time_ms?`: `undefined`; `message`: `string`; `recommendation?`: `undefined`; `slow_queries_percent?`: `undefined`; `slowest_queries?`: `undefined`; `status`: `string`; `target_ms?`: `undefined`; `total_queries_monitored?`: `undefined`; \} \| \{ `avg_query_time_ms`: `any`; `message?`: `undefined`; `recommendation`: `string` \| `null`; `slow_queries_percent`: `string`; `slowest_queries`: `object`[]; `status`: `string`; `target_ms`: `number`; `total_queries_monitored`: `any`; \}\>

Defined in: monitoring/system-health-monitor.js:58

Query performance health

#### Returns

`Promise`\<\{ `avg_query_time_ms?`: `undefined`; `message`: `string`; `recommendation?`: `undefined`; `slow_queries_percent?`: `undefined`; `slowest_queries?`: `undefined`; `status`: `string`; `target_ms?`: `undefined`; `total_queries_monitored?`: `undefined`; \} \| \{ `avg_query_time_ms`: `any`; `message?`: `undefined`; `recommendation`: `string` \| `null`; `slow_queries_percent`: `string`; `slowest_queries`: `object`[]; `status`: `string`; `target_ms`: `number`; `total_queries_monitored`: `any`; \}\>

***

### getHealthStatus()

> **getHealthStatus**(): `Promise`\<\{ `bottlenecks`: \{ `bottleneck_count`: `number`; `bottlenecks`: `any`[]; `critical_count`: `number`; `high_count`: `number`; `overall_system_status`: `string`; \}; `health`: \{ `dashboard_performance`: \{ `message`: `string`; `optimization_percent?`: `undefined`; `query_count?`: `undefined`; `recommendation?`: `undefined`; `slow_dashboard_queries?`: `undefined`; `status`: `string`; `target_ms?`: `undefined`; `total_load_time_ms?`: `undefined`; \} \| \{ `message?`: `undefined`; `optimization_percent`: `any`; `query_count`: `number`; `recommendation`: `string` \| `null`; `slow_dashboard_queries`: `any`; `status`: `string`; `target_ms`: `number`; `total_load_time_ms`: `any`; \}; `database`: \{ `connection_pool_active`: `any`; `connection_pool_idle`: `any`; `error?`: `undefined`; `latency_ms`: `number`; `recommendation`: `string` \| `null`; `status`: `string`; `target_ms`: `number`; \} \| \{ `connection_pool_active?`: `undefined`; `connection_pool_idle?`: `undefined`; `error`: `any`; `latency_ms`: `number`; `recommendation`: `string`; `status`: `string`; `target_ms?`: `undefined`; \}; `mlm_metrics`: \{ `error?`: `undefined`; `high_confidence_patterns?`: `undefined`; `message`: `string`; `pattern_accuracy?`: `undefined`; `patterns_by_domain?`: `undefined`; `recommendation?`: `undefined`; `status`: `string`; `target_accuracy?`: `undefined`; `total_patterns?`: `undefined`; \} \| \{ `error?`: `undefined`; `high_confidence_patterns`: `any`; `message?`: `undefined`; `pattern_accuracy`: `string`; `patterns_by_domain`: `object`[]; `recommendation`: `string` \| `null`; `status`: `string`; `target_accuracy`: `string`; `total_patterns`: `any`; \} \| \{ `error`: `any`; `high_confidence_patterns?`: `undefined`; `message?`: `undefined`; `pattern_accuracy?`: `undefined`; `patterns_by_domain?`: `undefined`; `recommendation?`: `undefined`; `status`: `string`; `target_accuracy?`: `undefined`; `total_patterns?`: `undefined`; \}; `qdd_metrics`: \{ `avg_confidence?`: `undefined`; `decision_count_24h?`: `undefined`; `decision_types?`: `undefined`; `error?`: `undefined`; `low_confidence_decisions?`: `undefined`; `message`: `string`; `recommendation?`: `undefined`; `status`: `string`; `target_confidence?`: `undefined`; \} \| \{ `avg_confidence`: `string`; `decision_count_24h`: `any`; `decision_types`: `string`[]; `error?`: `undefined`; `low_confidence_decisions`: `object`[]; `message?`: `undefined`; `recommendation`: `string` \| `null`; `status`: `string`; `target_confidence`: `string`; \} \| \{ `avg_confidence?`: `undefined`; `decision_count_24h?`: `undefined`; `decision_types?`: `undefined`; `error`: `any`; `low_confidence_decisions?`: `undefined`; `message?`: `undefined`; `recommendation?`: `undefined`; `status`: `string`; `target_confidence?`: `undefined`; \}; `query_performance`: \{ `avg_query_time_ms?`: `undefined`; `message`: `string`; `recommendation?`: `undefined`; `slow_queries_percent?`: `undefined`; `slowest_queries?`: `undefined`; `status`: `string`; `target_ms?`: `undefined`; `total_queries_monitored?`: `undefined`; \} \| \{ `avg_query_time_ms`: `any`; `message?`: `undefined`; `recommendation`: `string` \| `null`; `slow_queries_percent`: `string`; `slowest_queries`: `object`[]; `status`: `string`; `target_ms`: `number`; `total_queries_monitored`: `any`; \}; \}; `recovery_suggestions`: `any`[]; `summary`: \{ `check_duration_ms`: `number`; `critical_components`: `string`[]; `degraded_components`: `string`[]; `healthy_components`: `string`[]; `overall_status`: `string`; \}; `timestamp`: `string`; \}\>

Defined in: monitoring/system-health-monitor.js:372

Get last health check (or run new one)

#### Returns

`Promise`\<\{ `bottlenecks`: \{ `bottleneck_count`: `number`; `bottlenecks`: `any`[]; `critical_count`: `number`; `high_count`: `number`; `overall_system_status`: `string`; \}; `health`: \{ `dashboard_performance`: \{ `message`: `string`; `optimization_percent?`: `undefined`; `query_count?`: `undefined`; `recommendation?`: `undefined`; `slow_dashboard_queries?`: `undefined`; `status`: `string`; `target_ms?`: `undefined`; `total_load_time_ms?`: `undefined`; \} \| \{ `message?`: `undefined`; `optimization_percent`: `any`; `query_count`: `number`; `recommendation`: `string` \| `null`; `slow_dashboard_queries`: `any`; `status`: `string`; `target_ms`: `number`; `total_load_time_ms`: `any`; \}; `database`: \{ `connection_pool_active`: `any`; `connection_pool_idle`: `any`; `error?`: `undefined`; `latency_ms`: `number`; `recommendation`: `string` \| `null`; `status`: `string`; `target_ms`: `number`; \} \| \{ `connection_pool_active?`: `undefined`; `connection_pool_idle?`: `undefined`; `error`: `any`; `latency_ms`: `number`; `recommendation`: `string`; `status`: `string`; `target_ms?`: `undefined`; \}; `mlm_metrics`: \{ `error?`: `undefined`; `high_confidence_patterns?`: `undefined`; `message`: `string`; `pattern_accuracy?`: `undefined`; `patterns_by_domain?`: `undefined`; `recommendation?`: `undefined`; `status`: `string`; `target_accuracy?`: `undefined`; `total_patterns?`: `undefined`; \} \| \{ `error?`: `undefined`; `high_confidence_patterns`: `any`; `message?`: `undefined`; `pattern_accuracy`: `string`; `patterns_by_domain`: `object`[]; `recommendation`: `string` \| `null`; `status`: `string`; `target_accuracy`: `string`; `total_patterns`: `any`; \} \| \{ `error`: `any`; `high_confidence_patterns?`: `undefined`; `message?`: `undefined`; `pattern_accuracy?`: `undefined`; `patterns_by_domain?`: `undefined`; `recommendation?`: `undefined`; `status`: `string`; `target_accuracy?`: `undefined`; `total_patterns?`: `undefined`; \}; `qdd_metrics`: \{ `avg_confidence?`: `undefined`; `decision_count_24h?`: `undefined`; `decision_types?`: `undefined`; `error?`: `undefined`; `low_confidence_decisions?`: `undefined`; `message`: `string`; `recommendation?`: `undefined`; `status`: `string`; `target_confidence?`: `undefined`; \} \| \{ `avg_confidence`: `string`; `decision_count_24h`: `any`; `decision_types`: `string`[]; `error?`: `undefined`; `low_confidence_decisions`: `object`[]; `message?`: `undefined`; `recommendation`: `string` \| `null`; `status`: `string`; `target_confidence`: `string`; \} \| \{ `avg_confidence?`: `undefined`; `decision_count_24h?`: `undefined`; `decision_types?`: `undefined`; `error`: `any`; `low_confidence_decisions?`: `undefined`; `message?`: `undefined`; `recommendation?`: `undefined`; `status`: `string`; `target_confidence?`: `undefined`; \}; `query_performance`: \{ `avg_query_time_ms?`: `undefined`; `message`: `string`; `recommendation?`: `undefined`; `slow_queries_percent?`: `undefined`; `slowest_queries?`: `undefined`; `status`: `string`; `target_ms?`: `undefined`; `total_queries_monitored?`: `undefined`; \} \| \{ `avg_query_time_ms`: `any`; `message?`: `undefined`; `recommendation`: `string` \| `null`; `slow_queries_percent`: `string`; `slowest_queries`: `object`[]; `status`: `string`; `target_ms`: `number`; `total_queries_monitored`: `any`; \}; \}; `recovery_suggestions`: `any`[]; `summary`: \{ `check_duration_ms`: `number`; `critical_components`: `string`[]; `degraded_components`: `string`[]; `healthy_components`: `string`[]; `overall_status`: `string`; \}; `timestamp`: `string`; \}\>

***

### getRecoverySuggestions()

> **getRecoverySuggestions**(`bottlenecks`): `any`[]

Defined in: monitoring/system-health-monitor.js:256

Generate recovery suggestions

#### Parameters

##### bottlenecks

`any`

#### Returns

`any`[]

***

### identifyBottlenecks()

> **identifyBottlenecks**(`healthReport`): `object`

Defined in: monitoring/system-health-monitor.js:223

Identify system bottlenecks

#### Parameters

##### healthReport

`any`

#### Returns

`object`

##### bottleneck\_count

> **bottleneck\_count**: `number` = `bottlenecks.length`

##### bottlenecks

> **bottlenecks**: `any`[]

##### critical\_count

> **critical\_count**: `number`

##### high\_count

> **high\_count**: `number`

##### overall\_system\_status

> **overall\_system\_status**: `string`

***

### runFullHealthCheck()

> **runFullHealthCheck**(): `Promise`\<\{ `bottlenecks`: \{ `bottleneck_count`: `number`; `bottlenecks`: `any`[]; `critical_count`: `number`; `high_count`: `number`; `overall_system_status`: `string`; \}; `health`: \{ `dashboard_performance`: \{ `message`: `string`; `optimization_percent?`: `undefined`; `query_count?`: `undefined`; `recommendation?`: `undefined`; `slow_dashboard_queries?`: `undefined`; `status`: `string`; `target_ms?`: `undefined`; `total_load_time_ms?`: `undefined`; \} \| \{ `message?`: `undefined`; `optimization_percent`: `any`; `query_count`: `number`; `recommendation`: `string` \| `null`; `slow_dashboard_queries`: `any`; `status`: `string`; `target_ms`: `number`; `total_load_time_ms`: `any`; \}; `database`: \{ `connection_pool_active`: `any`; `connection_pool_idle`: `any`; `error?`: `undefined`; `latency_ms`: `number`; `recommendation`: `string` \| `null`; `status`: `string`; `target_ms`: `number`; \} \| \{ `connection_pool_active?`: `undefined`; `connection_pool_idle?`: `undefined`; `error`: `any`; `latency_ms`: `number`; `recommendation`: `string`; `status`: `string`; `target_ms?`: `undefined`; \}; `mlm_metrics`: \{ `error?`: `undefined`; `high_confidence_patterns?`: `undefined`; `message`: `string`; `pattern_accuracy?`: `undefined`; `patterns_by_domain?`: `undefined`; `recommendation?`: `undefined`; `status`: `string`; `target_accuracy?`: `undefined`; `total_patterns?`: `undefined`; \} \| \{ `error?`: `undefined`; `high_confidence_patterns`: `any`; `message?`: `undefined`; `pattern_accuracy`: `string`; `patterns_by_domain`: `object`[]; `recommendation`: `string` \| `null`; `status`: `string`; `target_accuracy`: `string`; `total_patterns`: `any`; \} \| \{ `error`: `any`; `high_confidence_patterns?`: `undefined`; `message?`: `undefined`; `pattern_accuracy?`: `undefined`; `patterns_by_domain?`: `undefined`; `recommendation?`: `undefined`; `status`: `string`; `target_accuracy?`: `undefined`; `total_patterns?`: `undefined`; \}; `qdd_metrics`: \{ `avg_confidence?`: `undefined`; `decision_count_24h?`: `undefined`; `decision_types?`: `undefined`; `error?`: `undefined`; `low_confidence_decisions?`: `undefined`; `message`: `string`; `recommendation?`: `undefined`; `status`: `string`; `target_confidence?`: `undefined`; \} \| \{ `avg_confidence`: `string`; `decision_count_24h`: `any`; `decision_types`: `string`[]; `error?`: `undefined`; `low_confidence_decisions`: `object`[]; `message?`: `undefined`; `recommendation`: `string` \| `null`; `status`: `string`; `target_confidence`: `string`; \} \| \{ `avg_confidence?`: `undefined`; `decision_count_24h?`: `undefined`; `decision_types?`: `undefined`; `error`: `any`; `low_confidence_decisions?`: `undefined`; `message?`: `undefined`; `recommendation?`: `undefined`; `status`: `string`; `target_confidence?`: `undefined`; \}; `query_performance`: \{ `avg_query_time_ms?`: `undefined`; `message`: `string`; `recommendation?`: `undefined`; `slow_queries_percent?`: `undefined`; `slowest_queries?`: `undefined`; `status`: `string`; `target_ms?`: `undefined`; `total_queries_monitored?`: `undefined`; \} \| \{ `avg_query_time_ms`: `any`; `message?`: `undefined`; `recommendation`: `string` \| `null`; `slow_queries_percent`: `string`; `slowest_queries`: `object`[]; `status`: `string`; `target_ms`: `number`; `total_queries_monitored`: `any`; \}; \}; `recovery_suggestions`: `any`[]; `summary`: \{ `check_duration_ms`: `number`; `critical_components`: `string`[]; `degraded_components`: `string`[]; `healthy_components`: `string`[]; `overall_status`: `string`; \}; `timestamp`: `string`; \}\>

Defined in: monitoring/system-health-monitor.js:324

Run complete health check

#### Returns

`Promise`\<\{ `bottlenecks`: \{ `bottleneck_count`: `number`; `bottlenecks`: `any`[]; `critical_count`: `number`; `high_count`: `number`; `overall_system_status`: `string`; \}; `health`: \{ `dashboard_performance`: \{ `message`: `string`; `optimization_percent?`: `undefined`; `query_count?`: `undefined`; `recommendation?`: `undefined`; `slow_dashboard_queries?`: `undefined`; `status`: `string`; `target_ms?`: `undefined`; `total_load_time_ms?`: `undefined`; \} \| \{ `message?`: `undefined`; `optimization_percent`: `any`; `query_count`: `number`; `recommendation`: `string` \| `null`; `slow_dashboard_queries`: `any`; `status`: `string`; `target_ms`: `number`; `total_load_time_ms`: `any`; \}; `database`: \{ `connection_pool_active`: `any`; `connection_pool_idle`: `any`; `error?`: `undefined`; `latency_ms`: `number`; `recommendation`: `string` \| `null`; `status`: `string`; `target_ms`: `number`; \} \| \{ `connection_pool_active?`: `undefined`; `connection_pool_idle?`: `undefined`; `error`: `any`; `latency_ms`: `number`; `recommendation`: `string`; `status`: `string`; `target_ms?`: `undefined`; \}; `mlm_metrics`: \{ `error?`: `undefined`; `high_confidence_patterns?`: `undefined`; `message`: `string`; `pattern_accuracy?`: `undefined`; `patterns_by_domain?`: `undefined`; `recommendation?`: `undefined`; `status`: `string`; `target_accuracy?`: `undefined`; `total_patterns?`: `undefined`; \} \| \{ `error?`: `undefined`; `high_confidence_patterns`: `any`; `message?`: `undefined`; `pattern_accuracy`: `string`; `patterns_by_domain`: `object`[]; `recommendation`: `string` \| `null`; `status`: `string`; `target_accuracy`: `string`; `total_patterns`: `any`; \} \| \{ `error`: `any`; `high_confidence_patterns?`: `undefined`; `message?`: `undefined`; `pattern_accuracy?`: `undefined`; `patterns_by_domain?`: `undefined`; `recommendation?`: `undefined`; `status`: `string`; `target_accuracy?`: `undefined`; `total_patterns?`: `undefined`; \}; `qdd_metrics`: \{ `avg_confidence?`: `undefined`; `decision_count_24h?`: `undefined`; `decision_types?`: `undefined`; `error?`: `undefined`; `low_confidence_decisions?`: `undefined`; `message`: `string`; `recommendation?`: `undefined`; `status`: `string`; `target_confidence?`: `undefined`; \} \| \{ `avg_confidence`: `string`; `decision_count_24h`: `any`; `decision_types`: `string`[]; `error?`: `undefined`; `low_confidence_decisions`: `object`[]; `message?`: `undefined`; `recommendation`: `string` \| `null`; `status`: `string`; `target_confidence`: `string`; \} \| \{ `avg_confidence?`: `undefined`; `decision_count_24h?`: `undefined`; `decision_types?`: `undefined`; `error`: `any`; `low_confidence_decisions?`: `undefined`; `message?`: `undefined`; `recommendation?`: `undefined`; `status`: `string`; `target_confidence?`: `undefined`; \}; `query_performance`: \{ `avg_query_time_ms?`: `undefined`; `message`: `string`; `recommendation?`: `undefined`; `slow_queries_percent?`: `undefined`; `slowest_queries?`: `undefined`; `status`: `string`; `target_ms?`: `undefined`; `total_queries_monitored?`: `undefined`; \} \| \{ `avg_query_time_ms`: `any`; `message?`: `undefined`; `recommendation`: `string` \| `null`; `slow_queries_percent`: `string`; `slowest_queries`: `object`[]; `status`: `string`; `target_ms`: `number`; `total_queries_monitored`: `any`; \}; \}; `recovery_suggestions`: `any`[]; `summary`: \{ `check_duration_ms`: `number`; `critical_components`: `string`[]; `degraded_components`: `string`[]; `healthy_components`: `string`[]; `overall_status`: `string`; \}; `timestamp`: `string`; \}\>
