플로우 실행 알림
Adobe Experience Platform을 사용하면 외부 소스에서 데이터를 수집할 수 있으며 을 사용하여 들어오는 데이터를 구조화하고, 레이블을 지정하고, 향상시킬 수 있습니다. Platform 서비스. Adobe 애플리케이션, 클라우드 기반 스토리지, 데이터베이스 및 기타 여러 소스와 같은 다양한 소스에서 데이터를 수집할 수 있습니다.
Flow Service API 는 내의 다양한 개별 소스에서 고객 데이터를 수집하고 중앙 집중화하는 데 사용됩니다 Platform. 이 서비스는 지원되는 모든 소스가 연결 가능한 사용자 인터페이스와 RESTful API를 제공합니다.
Adobe I/O 이벤트를 사용하여 이벤트를 구독하고 웹후크를 사용하여 플로우 실행 상태에 대한 알림을 받을 수 있습니다. 이러한 알림에는 플로우 실행의 성공 또는 실행 실패에 기여한 오류에 대한 정보가 포함됩니다.
이 문서에서는 이벤트를 구독하고, 웹후크를 등록하고, 플로우 실행 상태에 대한 정보가 포함된 알림을 받는 방법에 대한 단계를 제공합니다.
시작하기
이 자습서에서는 모니터링하려는 흐름이 실행되는 소스 연결을 이미 하나 이상 만들었다고 가정합니다. 아직 소스 연결을 구성하지 않은 경우 다음을 방문하여 시작하십시오. 소스 개요 이 안내서로 돌아가기 전에 선택한 소스를 구성합니다.
또한 이 문서에서는 웹후크 및 웹후크를 한 응용 프로그램에서 다른 응용 프로그램으로 연결하는 방법에 대해 작업해야 합니다. 다음을 참조하십시오. I/O Events 설명서 webhooks를 소개합니다.
플로우 실행 알림에 대한 웹후크 등록
플로우 실행 알림을 수신하려면 Adobe Developer 콘솔을 사용하여 웹 후크를 Experience Platform 통합.
다음에 대한 자습서를 따르십시오 I/O Event 알림 구독 을 수행하는 방법에 대한 자세한 단계입니다.
- Experience Platform 소스의 흐름 실행 성공
- Experience Platform 소스의 흐름 실행 실패
플로우 실행 알림 수신
Webhook이 연결되어 있고 이벤트 구독이 완료되면 Webhook 대시보드를 통해 흐름 실행 알림을 받을 수 있습니다.
알림은 실행된 수집 작업 수, 파일 크기 및 오류 등의 정보를 반환합니다. 알림은 플로우 실행과 연결된 페이로드도 JSON 형식으로 반환합니다. 응답 페이로드는 다음으로 분류될 수 있습니다. sources_flow_run_success
또는 sources_flow_run_failure
.
sources_flow_run_success
오류 수가 플로우 생성 프로세스 중에 설정된 오류 임계값 퍼센트 미만인 경우에만 해당됩니다. 성공한 흐름 실행에 오류가 포함되어 있으면 이러한 오류는 여전히 반환 페이로드의 일부로 포함됩니다.성공
성공적인 응답은 다음 집합을 반환합니다. metrics
특정 플로우 실행의 특성을 정의합니다. activities
데이터가 변환되는 방식을 간략하게 설명합니다.
{
"event_id": "aec55616-1715-487f-8044-ba648cc8ffee",
"event": {
"createdAt": 1597213529158,
"updatedAt": 1597213530760,
"createdBy": "{CREATED_BY}",
"updatedBy": "{UPDATED_BY}",
"createdClient": "{CREATED_CLIENT}",
"updatedClient": "{UPDATED_CLIENT}",
"sandboxId": "7127a4f0-def8-11e9-83ce-e79494b1c2a5",
"sandboxName": "prod",
"imsOrgId": "{ORG_ID}",
"id": "933cf9f4-cf01-4d75-bcf9-f4cf010d750a",
"flowId": "1c6f1047-dcaf-48fe-af10-47dcaf08feaf",
"providerRefId": "test1234",
"etag": "\"5100ec97-0000-0200-0000-5f338b5b0000\"",
"metrics": {
"durationSummary": {
"startedAtUTC": 1590512053,
"completedAtUTC": 1590512053
},
"sizeSummary": {
"inputBytes": 2048,
"outputBytes": 1024
},
"recordSummary": {
"inputRecordCount": 100,
"outputRecordCount": 70
},
"fileSummary": {
"inputFileCount": 10,
"outputFileCount": 10
},
"statusSummary": {
"status": "success"
}
},
"activities": [
{
"id": "copyActivity",
"updatedAtUTC": 87473822,
"durationSummary": {
"startedAtUTC": 1590512053,
"completedAtUTC": 1590512053
},
"sizeSummary": {
"inputBytes": 2048,
"outputBytes": 1098
},
"recordSummary": {
"inputRecordCount": 100,
"outputRecordCount": 100
},
"fileSummary": {
"inputFileCount": 10,
"outputFileCount": 10
},
"statusSummary": {
"status": "success",
"extensions": {
"adf/pipeline/id": "abcd",
"adf/run/id": "1234"
}
},
"sourceInfo": [
{
"id": "sourceConnectionId1",
"type": "SourceConnection",
"reference": {
"type": "AdfRunId"
}
}
]
},
{
"id": "promotionActivity",
"updatedAtUTC": 87473822,
"durationSummary": {
"completedAtUTC": 1590512053
},
"sizeSummary": {
"inputBytes": 1098,
"outputBytes": 1024
},
"recordSummary": {},
"fileSummary": {
"inputFileCount": 10,
"outputFileCount": 10,
"extensions": {
"manifest": {
"fileInfo": "https://platform.adobe.io/data/foundation/export/batches/01E4TSJNM2H5M74J0XB8MFWDHK/meta?path=input_files"
}
}
},
"statusSummary": {
"status": "success",
"extensions": {
"batchId": "b1",
"acp_request_id": "1234"
}
},
"targetInfo": [
{
"id": "targetConnectionId1",
"type": "TargetConnection",
"reference": {
"type": "batch"
}
}
]
}
],
"slaCreatedAt": 1597213531124,
"processStartTime": 1597213531213,
"header": {
"_adobeio": {
"imsOrgId": "{ORG_ID}",
"providerMetadata": "platform_notifications",
"eventCode": "sources_flow_run_success"
}
},
"transformedTime": 1597213531214
}
}
metrics
activities
durationSummary
sizeSummary
recordSummary
fileSummary
fileInfo
statusSummary
실패
다음 응답은 복사된 데이터가 처리되면서 발생하는 오류와 함께 실패한 흐름 실행의 예입니다. 소스에서 데이터를 복사하는 동안 오류가 발생할 수도 있습니다. 실패한 흐름 실행에는 오류 및 설명을 포함하여 실행 실패의 원인이 된 오류에 대한 정보가 포함됩니다.
[
{
"messages": [
{
"msgType": "eventNotification",
"version": "1.0",
"timestamp": 1597434157622,
"imsOrgId": "{ORG_ID}",
"schema": {
"name": "run-notification",
"version": "1.0"
},
"provider": "FlowService",
"_eventNotificationMeta": {
"category": "Platform Notifications",
"type": "sources_flow_run_failed"
},
"value": {
"createdAt": 1597434147259,
"updatedAt": 1597434157567,
"createdBy": "{CREATED_BY}",
"updatedBy": "{UPDATED_BY}",
"createdClient": "{CREATED_CLIENT}",
"updatedClient": "{UPDATED_CLIENT}",
"sandboxId": "e49ebb00-d0fa-11e9-b164-ed6a398c8b35",
"sandboxName": "prod",
"imsOrgId": "{ORG_ID}",
"id": "d9024c32-2174-4271-824c-322174627101",
"flowId": "cf4fce79-8822-456d-8fce-798822556dc6",
"etag": "\"0c003dbf-0000-0200-0000-5f36e92d0000\"",
"metrics": {
"durationSummary": {
"startedAtUTC": 1597434147190
},
"sizeSummary": {
"inputBytes": -1
},
"fileSummary": {
"inputFileCount": -1
},
"statusSummary": {
"status": "failed",
"errors": [
{
"code": "CONNECTOR-2001-500",
"message": "Error in processing (parsing, validation or transformation) the copied data."
}
]
}
},
"activities": [
{
"id": "promotionActivity",
"updatedAtUTC": 1597434157529,
"durationSummary": {
"startedAtUTC": 1597434147190,
"completedAtUTC": 1597434157212
},
"sizeSummary": {
"inputBytes": -1
},
"recordSummary": {},
"fileSummary": {
"inputFileCount": -1,
"extensions": {
"manifest": {
"fileInfo": "https://platform-stage.adobe.io/data/foundation/export/batches/6f6a900f-e40d-4f0e-9bb9-b614436c3465/meta?path=input_files"
}
}
},
"statusSummary": {
"status": "failed",
"errors": [
{
"code": "CONNECTOR-2001-500",
"message": "Error in processing (parsing, validation or transformation) the copied data."
}
],
"extensions": {
"errors": [
{
"code": "133",
"message": "We are unable to locate any files uploaded for this batch. Please upload files to ingest."
}
]
}
},
"targetInfo": [
{
"id": "e88737aa-27b8-4795-8737-aa27b8f7959e",
"type": "TargetConnection",
"reference": {
"type": "Batch",
"ids": [
"6f6a900f-e40d-4f0e-9bb9-b614436c3465"
]
}
}
]
}
]
}
}
]
}
]
fileInfo
다음 단계
이제 플로우 실행 상태에 대한 실시간 알림을 받을 수 있는 이벤트를 구독할 수 있습니다. 흐름 실행 및 소스에 대한 자세한 내용은 소스 개요.
부록
다음 섹션에서는 흐름 실행 알림 작업에 대한 추가 정보를 제공합니다.
오류 메시지 이해 errors
수집 오류는 소스에서 데이터를 복사할 때나 복사된 데이터를에 처리할 때 발생할 수 있습니다. Platform. 특정 오류에 대한 자세한 내용은 아래 표를 참조하십시오.
CONNECTOR-1001-500
CONNECTOR-2001-500