

翻訳は機械翻訳により提供されています。提供された翻訳内容と英語版の間で齟齬、不一致または矛盾がある場合、英語版が優先します。

# Amazon EventBridge を使用した イベントのモニタリング
<a name="events"></a>

Amazon EventBridge イベントは、DataSync リソースの変更を表示します。このようなイベントを一致させるルールを設定して、1 つ以上のターゲット関数またはストリームにルートできます。イベントは、ベストエフォートベースで出力されます。

## DataSync 転送イベント
<a name="events-transfer"></a>

DataSync 転送では、以下のEventBridge イベントを使用できます。


| **Agent state changes** | 
| --- |
| [Event] (イベント) | 説明 | 
| Online | The agent is configured properly and ready to use. This is the normal running status for an agent. | 
| Offline | The agent has been out of contact with the DataSync service for five minutes or longer. This can happen for a few reasons. For more information, see [エージェントがオフラインの場合の対処は?](troubleshooting-datasync-agents.md#troubleshoot-agent-offline) | 
| **Location state changes** | 
| --- |
| [Event] (イベント) | 説明 | 
| Adding | DataSync is adding a location. | 
| Available | The location is created and is available to use. | 
| **Task state changes** | 
| --- |
| [Event] (イベント) | 説明 | 
| Available | The task was created and is ready to start. | 
| Running | The task is in progress and functioning properly.  | 
| Unavailable | The task isn't configured properly and can't be used. You might see this event when an agent associated with the task goes offline.  | 
| Queued | Another task is running and using the same agent. DataSync runs tasks in series (first in, first out).  | 
| **Task execution state changes** | 
| --- |
| [Event] (イベント) | 説明 | 
| Queueing | Another task execution is running and using the same DataSync agent. For more information, see [タスクがキューに登録されるタイミングを知る](run-task.md#queue-task-execution). | 
| Launching | DataSync is initializing the task execution. This status usually goes quickly but can take up to a few minutes. | 
| Preparing |  DataSync がどのデータを転送するかを決定しています。 このステップには、両方の場所にあるファイル、オブジェクト、またはディレクトリの数や、タスクをどのように設定しているかに応じて数分から数時間かかる場合があります。準備はタスクに適用できない場合もあります。詳細については、「[DataSync がデータ転送を準備する方法](how-datasync-transfer-works.md#how-datasync-prepares)」を参照してください。  | 
| Transferring |  DataSync is performing the actual data transfer. | 
| Verifying | DataSync is performing a data-integrity check at the end of the transfer. | 
| Success | The task execution succeeded. | 
| Cancelling | The task execution is in the process of being cancelled. | 
| Error | The task execution failed. | 