

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

# サービスジョブキューのブロックイベント
<a name="batch-service-job-queue-blocked-events"></a>

がブロックされたキュー AWS Batch を検出するたびに、Amazon CloudWatch Events にイベントが作成されます。[https://docs.aws.amazon.com/batch/latest/APIReference/API_DescribeServiceJob.html](https://docs.aws.amazon.com/batch/latest/APIReference/API_DescribeServiceJob.html) API アクションの `statusReason` フィールドでキューのブロック原因を確認できます。

**Example サービスジョブキューのブロックイベント**  
サービスジョブキューのブロックイベントは、以下のフォーマットで配信されます。`detail` セクションは、*AWS Batch API リファレンス*の [DescribeServiceJob](https://docs.aws.amazon.com/batch/latest/APIReference/API_DescribeServiceJob.html) API オペレーションから返される応答に似ています。EventBridge パラメータの詳細については、*Amazon EventBridge ユーザーガイド*の[イベントとイベントパターン](https://docs.aws.amazon.com/eventbridge/latest/userguide/eb-events.html)を参照してください。  
`tags` および `serviceRequestPayload` フィールドはイベント `detail` に含まれません。

```
{
  "version": "0",
  "id": "c8f9c4b5-76e5-d76a-f980-7011e206042b",
  "detail-type": "Batch Service Job Queue Blocked",
  "source": "aws.batch",
  "account": "{{123456789012}}",
  "time": "2022-01-11T23:36:40Z",
  "region": "{{us-east-1}}",
  "resources": [
    "arn:aws:batch:{{us-east-1}}:{{123456789012}}:service-job/4c7599ae-0a82-49aa-ba5a-4727fcce14a8"
  ],
  "detail": {
    "attempts": [],
    "createdAt": 1641944200058,
    "jobArn": "arn:aws:batch:{{us-east-1}}:{{123456789012}}:service-job/4c7599ae-0a82-49aa-ba5a-4727fcce14a8",
    "jobId": "6271dfdf-d8a7-41b1-a4d2-55a2224f5375",
    "jobName": "event-test",
    "jobQueue": "arn:aws:batch:{{us-east-1}}:{{123456789012}}:job-queue/HappyPathJobQueue",
    "serviceJobType": "SAGEMAKER_TRAINING",
    "status": "RUNNABLE",
    "statusReason": "{{blocked-reason}}",
    "timeoutConfig": {
      "attemptDurationSeconds": 60
    }
  }
}
```