

기계 번역으로 제공되는 번역입니다. 제공된 번역과 원본 영어의 내용이 상충하는 경우에는 영어 버전이 우선합니다.

# 인적 루프 모니터링 및 관리
<a name="a2i-monitor-humanloop-results"></a>

인적 검토 루프를 시작한 후에는 [Amazon Augmented AI 런타임 API](https://docs.aws.amazon.com/augmented-ai/2019-11-07/APIReference/Welcome.html)를 사용하여 루프에 전송된 태스크 결과를 확인하고 관리할 수 있습니다. 또한, Amazon A2I는 Amazon EventBridge(Amazon CloudWatch Events라고도 함)와 통합되어 인적 검토 루프 상태가, `Completed` `Failed` 또는 `Stopped`로 변경될 때 알려줍니다. 이 이벤트 전달은 최소 한 번 보장되므로 인적 루프가 종료될 때 생성되는 모든 이벤트가 EventBridge로 성공적으로 전달됩니다.

아래 절차를 사용하여 Amazon A2I 런타임 API를 통해 인적 루프를 모니터링하고 관리하는 방법을 알아봅니다. Amazon A2I가 Amazon EventBridge와 통합되는 방식은 [Amazon Augmented AI Amazon CloudWatch Events 에서 사용](a2i-cloudwatch-events.md)를 참조하세요.

**출력 데이터를 확인하려면**

1. [https://docs.aws.amazon.com/augmented-ai/2019-11-07/APIReference/API_DescribeHumanLoop.html](https://docs.aws.amazon.com/augmented-ai/2019-11-07/APIReference/API_DescribeHumanLoop.html) 작업을 호출하여 인적 루프의 결과를 확인합니다. 이 API 작업의 결과에는 루프 활성화의 이유와 결과에 대한 정보가 포함됩니다.

1. Amazon Simple Storage Service(S3)에서 인적 루프의 출력 데이터를 확인합니다. 데이터 경로에서 `YYYY/MM/DD/hh/mm/ss`는 인적 루프 생성 날짜(년(`YYYY`), 월(`MM`), 일(`DD`)) 및 생성 시간(시(`hh`), 분(`mm`), 초(`ss`))을 나타냅니다.

   ```
   s3://customer-output-bucket-specified-in-flow-definition/flow-definition-name/YYYY/MM/DD/hh/mm/ss/human-loop-name/output.json
   ```

이 구조를 AWS Glue 또는 Amazon Athena와 통합하여 출력 데이터를 파티션으로 나누고 분석할 수 있습니다. 자세한 내용은 [AWS Glue에서 ETL 출력을 위한 파티션 관리](https://docs.aws.amazon.com/glue/latest/dg/aws-glue-programming-etl-partitions.html)를 참조하세요.

Amazon A2I 출력 데이터 형식에 대한 자세한 내용은 [Amazon A2I 출력 데이터](a2i-output-data.md)를 참조하세요.

**인적 루프를 중지하고 삭제하려면**

1. 인적 루프가 시작되면 를 사용하여 `HumanLoopName`을 사용해서 [https://docs.aws.amazon.com/augmented-ai/2019-11-07/APIReference/API_StopHumanLoop.html](https://docs.aws.amazon.com/augmented-ai/2019-11-07/APIReference/API_StopHumanLoop.html)작업을 호출하여 인적 루프를 중지할 수 있습니다. 인적 루프가 성공적으로 중지되면 서버는 HTTP 200 응답을 다시 보냅니다.

1. 상태가 `Failed`, `Completed` 또는 `Stopped`인 인적 루프를 삭제하려면 [https://docs.aws.amazon.com/augmented-ai/2019-11-07/APIReference/API_DeleteHumanLoop.html](https://docs.aws.amazon.com/augmented-ai/2019-11-07/APIReference/API_DeleteHumanLoop.html) 작업을 사용합니다.

**인적 루프를 나열하려면**

1. [https://docs.aws.amazon.com/augmented-ai/2019-11-07/APIReference/API_ListHumanLoops.html](https://docs.aws.amazon.com/augmented-ai/2019-11-07/APIReference/API_ListHumanLoops.html) 작업을 호출하여 모든 활성 인적 루프를 나열할 수 있습니다. `CreationTimeAfter` 및 `CreateTimeBefore` 파라미터를 사용하여 루프의 생성 날짜별로 인적 루프를 필터링할 수 있습니다.

1. 성공한 경우 `ListHumanLoops`는 응답 요소에 [https://docs.aws.amazon.com/augmented-ai/2019-11-07/APIReference/API_HumanLoopSummary.html](https://docs.aws.amazon.com/augmented-ai/2019-11-07/APIReference/API_HumanLoopSummary.html) 및 `NextToken` 객체를 반환합니다. `HumanLoopSummaries`에는 단일 인적 루프에 대한 정보가 포함되어 있습니다. 예를 들어, 루프의 상태가 나열되고 해당되는 경우 실패 사유도 나열됩니다.

   `NextToken`에서 반환된 문자열을 `ListHumanLoops`에 대한 후속 호출의 입력으로 사용하여 인적 루프의 다음 페이지를 표시합니다.