---
title: health_service | CodeWeaver Docs
description: API reference for codeweaver.server.health.health_service
url: "https://docs.knitli.com/api/server/health/health_service"
type: static
generatedAt: "2026-04-17T17:21:09.802Z"
---

# health_service
       [Open in ChatGPT](https://chatgpt.com/?q=Read%20https%3A%2F%2Fdocs.knitli.com%2Fcodeweaver%2Fapi%2Fserver%2Fhealth%2Fhealth_service%2F.%20I%20want%20to%20ask%20questions%20about%20it.)[Open in Claude](https://claude.ai/new?q=Read%20https%3A%2F%2Fdocs.knitli.com%2Fcodeweaver%2Fapi%2Fserver%2Fhealth%2Fhealth_service%2F.%20I%20want%20to%20ask%20questions%20about%20it.)[View in Markdown](/codeweaver/api/server/health/health_service.md)       [Share on LinkedIn](https://www.linkedin.com/sharing/share-offsite/?url=https%3A%2F%2Fdocs.knitli.com%2Fcodeweaver%2Fapi%2Fserver%2Fhealth%2Fhealth_service%2F)[Share on X](https://x.com/intent/tweet?url=https%3A%2F%2Fdocs.knitli.com%2Fcodeweaver%2Fapi%2Fserver%2Fhealth%2Fhealth_service%2F&text=health_service)[Share on Threads](https://threads.net/intent/post?url=https%3A%2F%2Fdocs.knitli.com%2Fcodeweaver%2Fapi%2Fserver%2Fhealth%2Fhealth_service%2F&text=health_service)[Share on Bluesky](https://bsky.app/intent/compose?text=health_service%20https%3A%2F%2Fdocs.knitli.com%2Fcodeweaver%2Fapi%2Fserver%2Fhealth%2Fhealth_service%2F)[Share on Facebook](https://www.facebook.com/sharer/sharer.php?u=https%3A%2F%2Fdocs.knitli.com%2Fcodeweaver%2Fapi%2Fserver%2Fhealth%2Fhealth_service%2F)[Share on Reddit](https://reddit.com/submit?url=https%3A%2F%2Fdocs.knitli.com%2Fcodeweaver%2Fapi%2Fserver%2Fhealth%2Fhealth_service%2F&title=health_service)[Share on Hacker News](https://news.ycombinator.com/submitlink?u=https%3A%2F%2Fdocs.knitli.com%2Fcodeweaver%2Fapi%2Fserver%2Fhealth%2Fhealth_service%2F&t=health_service)[Share on Email](mailto:?subject=health_service&body=https%3A%2F%2Fdocs.knitli.com%2Fcodeweaver%2Fapi%2Fserver%2Fhealth%2Fhealth_service%2F)[Share on WhatsApp](https://wa.me/?text=health_service%20https%3A%2F%2Fdocs.knitli.com%2Fcodeweaver%2Fapi%2Fserver%2Fhealth%2Fhealth_service%2F)[Share on Telegram](https://t.me/share/url?url=https%3A%2F%2Fdocs.knitli.com%2Fcodeweaver%2Fapi%2Fserver%2Fhealth%2Fhealth_service%2F&text=health_service)
# `codeweaver.server.health.health_service`
[Section titled “codeweaver.server.health.health_service”](#codeweaverserverhealthhealth_service)
Health service for collecting and aggregating system health information.

## Class: `HealthService`
[Section titled “Class: HealthService”](#class-healthservice)
Service for collecting and aggregating health information from all components.

### Method: `add_indexed_language`
[Section titled “Method: add_indexed_language”](#method-add_indexed_language)

**

```
add_indexed_language()
```

Add a language to the set of indexed languages.

### Method: `get_health_response`
[Section titled “Method: get_health_response”](#method-get_health_response)

**

```
get_health_response()
```

Collect health information from all components and return complete response.

Returns: HealthResponse with current system health

### Method: `set_indexer`
[Section titled “Method: set_indexer”](#method-set_indexer)

**

```
set_indexer()
```

Set the indexer instance after initialization.

### Method: `to_dict`
[Section titled “Method: to_dict”](#method-to_dict)

**

```
to_dict()
```

Convert HealthService to dictionary for serialization.

### Method: `update_last_indexed`
[Section titled “Method: update_last_indexed”](#method-update_last_indexed)

**

```
update_last_indexed()
```

Update the last indexed timestamp to current time.