# buildAlertTitle

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

@shumoku/core · 0.4.0 · function

# buildAlertTitle

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

Display title: \`"<alertname> - <host>"\`, or just the name when no host.

```
buildAlertTitle(labels: Record<string, string>): string
```

## Parameters

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

## Returns

```
string
```

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