# アラート用のメールとWebhook通知の設定

## メール通知 <a href="#configuringemailandwebhooknotificationsforalerts-emailnotifications" id="configuringemailandwebhooknotificationsforalerts-emailnotifications"></a>

各モニターに対するメール通知を有効にすることができます。 アラートシステムは、アラートの閾値がトリガーされた場合にメールを送信します。 アラートがもうアクティブでない場合、システムはリカバリメールも送信します。 システムがアラートを回復または自動回復した場合、アラートはもうアクティブではありません。 リカバリは、検出された異常がシステムで検出されなくなり、ブレークした閾値がもはや破られていないことを意味します。 一方、自動回復は、Nexthinkがもはやイベントを検出しない場合です。

グローバル障害が発生すると、プラットフォームは同時に複数のアラートをトリガーする可能性があります。 メールサーバーの負荷を防ぐために、Nexthinkは各モニターあたり最初の30トリガーについてのみメール通知を送信し、メール受信者に通知します。 アラートの完全なリストは、Nexthinkのwebインターフェースを使用して引き続き表示でき、各モニタートリガーごとに最大500のアラートがあります。

**通知**タブを使用して、システムがアラートをトリガーしたときに適切なチームに通知するメールチャンネルを設定します。

<figure><img src="https://3549141153-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FeLm8O7QKZDn6z806e7Sv%2Fuploads%2Fgit-blob-41424aa6256f51af1f1cd59f33cf1c9f2c209967%2Falert-1678441162.png?alt=media" alt="Monitor notifications"><figcaption></figcaption></figure>

## Webhook通知 <a href="#configuringemailandwebhooknotificationsforalerts-webhooknotifications" id="configuringemailandwebhooknotificationsforalerts-webhooknotifications"></a>

Webhookを使用して、Nexthinkプラットフォームから他のサードパーティツールに通知を送りましょう。 詳細については、[Webhooks](https://docs.nexthink.com/platform/ja/configuring_nexthink/bringing-data-into-your-nexthink-instance/integrating-nexthink-with-third-party-tools/outbound-connectors/webhooks) ドキュメントを参照してください。

外部システムに通知を送信するための手順は以下の通りです:

* モニターを作成します。
* アウトバウンドWebhookコネクタを作成します。 詳細については、[マネージメントウェブフック](https://docs.nexthink.com/platform/ja/configuring_nexthink/bringing-data-into-your-nexthink-instance/integrating-nexthink-with-third-party-tools/outbound-connectors/webhooks/managing-webhooks)のページを参照してください。
* アラートからのペイロードを含むWebhook通知を作成します。

### 通知内のアラートペイロード <a href="#configuringemailandwebhooknotificationsforalerts-alertpayloadinthenotification" id="configuringemailandwebhooknotificationsforalerts-alertpayloadinthenotification"></a>

NQLモニタークエリは、通知内で利用可能なペイロードを決定します。

<table><thead><tr><th width="372">モニターNQLクエリ</th><th>メール通知</th><th>Webhook通知</th></tr></thead><tbody><tr><td><pre><code>devices
...
| compute 
</code></pre></td><td>デバイス名とメトリックペイロード</td><td>デバイス名とメトリックペイロード。 さらに、関連するデバイスのすべてのプロパティを通知ペイロードに追加することができます。</td></tr><tr><td><pre><code>users
...
| compute 
</code></pre></td><td>ユーザー名とメトリックペイロード</td><td>ユーザー名とメトリックペイロード。 さらに、関連するデバイスのすべてのプロパティを通知ペイロードに追加することができます。</td></tr><tr><td><pre><code>...
| summarize , ...
  by device.collector.ui
</code></pre></td><td>デバイス名とメトリックペイロード</td><td><p>デバイス名とメトリックのペイロード。</p><p>さらに、すべてのデバイスプロパティを通知ペイロードに追加できます。</p></td></tr><tr><td><pre><code>...
| summarize , ...
  by , 
</code></pre></td><td>ディメンション1の値、ディメンション2の値、およびメトリックペイロード</td><td>ディメンション1の値、ディメンション2の値、およびメトリックペイロード</td></tr><tr><td><pre><code>...
| summarize , 
</code></pre></td><td>メトリック1、メトリック2ペイロード値</td><td>メトリック1、メトリック2ペイロード値</td></tr></tbody></table>

***

関連トピック

* [Webhooks](https://docs.nexthink.com/platform/ja/configuring_nexthink/bringing-data-into-your-nexthink-instance/integrating-nexthink-with-third-party-tools/outbound-connectors/webhooks)
* [ウェブフック管理](https://docs.nexthink.com/platform/ja/configuring_nexthink/bringing-data-into-your-nexthink-instance/integrating-nexthink-with-third-party-tools/outbound-connectors/webhooks/managing-webhooks)
* [Nexthink Library](https://docs.nexthink.com/platform/ja/user-guide/nexthink-library)
