# parseAlertmanagerAlerts

Canonical: https://docs.shumoku.dev/ja/library/api/parseAlertmanagerAlerts
Language: ja

@shumoku/core · 0.4.0 · function

# parseAlertmanagerAlerts

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

APIの説明は英語のcanonical sourceを表示しています。

Parse an Alertmanager response into core \`Alert\[\]\`, applying the standard active/timeRange and minSeverity filters. - Active alerts are always kept; resolved alerts are dropped when \`activeOnly\`, otherwise dropped once older than \`timeRange\` (default 1h). - Unparseable \`startsAt\` falls back to \`now\`; missing/unparseable \`endsAt\` yields \`undefined\` (no bogus epoch-0 end time).

```
parseAlertmanagerAlerts(raw: AlertmanagerAlert[], options: ParseAlertmanagerOptions): Alert[]
```

## パラメーター

| 名前 | 型 | 説明 | 既定値 |
| --- | --- | --- | --- |
| `raw` | `AlertmanagerAlert[]` | 追加説明はありません。 | `—` |
| `options` | `ParseAlertmanagerOptions` | 追加説明はありません。 | `—` |

## 戻り値

```
Alert[]
```

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