# extractHost

Canonical: https://docs.shumoku.dev/en/library/api/extractHost
Language: en

@shumoku/core · 0.4.0 · function

# extractHost

[Source](https://github.com/konoe-akitoshi/shumoku/blob/main/libs/@shumoku/core/src/plugin-kit/alertmanager.ts#L30)

Host from the common label dialects, in priority order.

```
extractHost(labels: Record<string, string>): string | undefined
```

## Parameters

| Parameter | Type | Description | Default |
| --- | --- | --- | --- |
| `labels` | `Record<string, string>` | No additional description. | `—` |

## Returns

```
string | undefined
```

[`libs/@shumoku/core/src/plugin-kit/alertmanager.ts:30`](https://github.com/konoe-akitoshi/shumoku/blob/main/libs/@shumoku/core/src/plugin-kit/alertmanager.ts#L30)
