---
schema_version: "1"
id: 4c15ad1f1f72442d7719a0e812e14f46c6117371e1c26ec2b098ad8109afc32c
title: Mule ゲートウェイまたは Service Mesh の API アラートの追加
collection: mulesoft
version: current
locale: ja-jp
portal_url: https://docs.salesforce.com/mulesoft/current/ja-jp/api-manager/latest/add-api-alert-task.md
canonical_url: https://docs.mulesoft.com/jp/api-manager/latest/add-api-alert-task
source_site: docs.mulesoft.com
content_type: documentation
content_hash: 83bd38b68d1ac8801c7615379466bc91ea4c35b43aec90aabf927ddda3d65302
description: MuleSoft Documentation Site
release: 2.x
latest: true
---
# Mule ゲートウェイまたは Service Mesh の API アラートの追加

API を追跡および管理するには、1 つ以上の API アラートを API インスタンスに追加できます。各自の要件に基づいて、さまざまな​[種別のアラート](https://docs.mulesoft.com/jp/api-manager/latest/using-api-alerts)​を追加します。

Mule ゲートウェイまたは Service Mesh をランタイムとして使用する API の場合、このチュートリアルの手順に従ってアラートを API に追加します。

ポリシー違反アラートは​[自動ポリシー](https://docs.mulesoft.com/gateway/latest/policies-automated-overview)​に追加できません。

<table><tbody><tr><td class="icon"><i class="fa icon-note" title="Note"></i></td><td class="content">このチュートリアルは Mule ゲートウェイおよび Service Mesh ランタイムを対象とします。Flex Gateway をランタイムとして使用する API にアラートを追加するには、​<a href="https://docs.mulesoft.com/gateway/latest/use-api-alerts" class="xref page">「Flex Gateway の API アラートの追加」</a>​を参照してください。</td></tr></tbody></table>

## [](#mule-gateway)Mule ゲートウェイまたは Service Mesh の API アラートの追加

Mule ゲートウェイまたは Service Mesh API に API アラートを追加する手順は、次のとおりです。

1. **\[Anypoint Platform\]**​ > ​**\[API Manager\]**​ に移動します。
2. **\[API Administration (API 管理)\]**​ で、アラートを追加する API インスタンスをクリックします。
3. **\[Alerts (アラート)\]**​ > ​**\[Add alert (アラートを追加)\]**​ をクリックします。
4. アラートオプションを指定します。
    
    - **Name (名前)**​:
        
        アラート名を入力します (例: `trial-alert`​)。
        
        複数のアラートを同じ環境に追加する場合、アラートの名前が一意である必要があります。
    - **Enabled (有効化)**​:
        
        デフォルトのオプションは ​**\[Enabled (有効化)\]**​ です。
        
        不要な場合はアラートをいつでも削除できます。
    - **Severity (重要度)**​:
        
        アラートの重要度を選択します (例: **\[Info (情報)\]**​)。
    - **Alert type (アラートタイプ)**​:
        
        作成するアラートの種別 (​**\[Request Count (要求数)\]**​ など) を選択し、アラートの適切な設定値を指定します。アラートタイプについての詳細は、​[「API アラート」](https://docs.mulesoft.com/jp/api-manager/latest/using-api-alerts#api-alerts)​を参照してください。
        
        <table>
<tbody><tr>
<td class="icon">
<i class="fa icon-tip" title="Tip"></i>
</td>
<td class="content">
<div class="paragraph">
<p><strong>[For at least (次の期間以上)]</strong>​ 項目と ​<strong>[consecutive period(s) of (連続する次の期間)]</strong>​ 項目に 1 ～ 999999999 の値を入力し、期間を <a href="https://www.techopedia.com/definition/869/sliding-window">スライディングウィンドウ</a>​として指定します。</p>
</div>
</td>
</tr>
</tbody></table>
5. **受信者**​を選択します。
    
    メール通知を受信するメールを指定します。
6. **\[Create Alert (アラートを作成)\]**​ をクリックします。

## [](#関連情報)関連情報

- [アラートの概念の確認](https://docs.mulesoft.com/jp/api-manager/latest/using-api-alerts)
- [Flex Gateway の API アラートの追加](https://docs.mulesoft.com/gateway/latest/use-api-alerts)