다음을 통해 공유


OperationDetails 클래스

OperationDetails는 완료된 경우 작업의 결과 또는 오류를 포함하여 모델 작업에 대한 정보로 구성됩니다.

작업 정보는 24시간 동안만 유지됩니다. 작업이 성공한 경우 , , <xref:azure.ai.formrecognizer.list_document_models>, <xref:azure.ai.formrecognizer.get_document_classifier><xref:azure.ai.formrecognizer.list_document_classifiers> API를 <xref:azure.ai.formrecognizer.get_document_model>사용하여 모델에 액세스할 수도 있습니다.

버전 2023-07-31의 새로운 기능: documentClassifierBuild 종류 및 DocumentClassifierDetails 결과입니다.

상속
azure.ai.formrecognizer._models.OperationSummary
OperationDetails

생성자

OperationDetails(**kwargs: Any)

메서드

from_dict

OperationDetails 모양의 받아쓰기를 모델 자체로 변환합니다.

to_dict

OperationDetails의 받아쓰기 표현을 반환합니다.

from_dict

OperationDetails 모양의 받아쓰기를 모델 자체로 변환합니다.

from_dict(data: Dict) -> OperationDetails

매개 변수

data
dict
필수

OperationDetails 모양의 사전입니다.

반환

OperationDetails

반환 형식

to_dict

OperationDetails의 받아쓰기 표현을 반환합니다.

to_dict() -> Dict

반환

dict

반환 형식

특성

api_version

이 작업을 만드는 데 사용되는 API 버전입니다.

api_version: str | None

created_on

작업을 만든 날짜 및 시간(UTC)입니다.

created_on: datetime

error

오류가 발생했습니다. 오류 코드, 메시지 및 작업이 실패한 이유에 대한 세부 정보가 포함됩니다.

error: DocumentAnalysisError | None

kind

"documentModelBuild", "documentModelCompose", "documentModelCopyTo", "documentClassifierBuild".

kind: str

last_updated_on

작업이 마지막으로 업데이트된 날짜 및 시간(UTC)입니다.

last_updated_on: datetime

operation_id

작업 ID입니다.

operation_id: str

percent_completed

작업 진행률(0-100).

percent_completed: int | None

resource_location

이 작업의 대상이 되는 리소스의 URL입니다.

resource_location: str

result

성공 시 작업 결과입니다. 모델에 대한 모든 정보가 포함된 DocumentModelDetails 또는 DocumentClassifierDetails를 반환합니다.

result: DocumentModelDetails | DocumentClassifierDetails | None

status

"notStarted", "running", "failed", "succeeded", "canceled".

status: str

tags

모델과 연결된 사용자 정의 키-값 태그 특성 목록입니다.

tags: Dict[str, str] | None