-
Notifications
You must be signed in to change notification settings - Fork 44
/
sequence.puml
21 lines (21 loc) · 1.18 KB
/
sequence.puml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
@startuml
title PUP Processing Flow
entity platform.upload.announce
entity platform.upload.validation
participant puptoo
entity platform.inventory.hostingress
participant hbi
database s3permanent
platform.upload.announce->puptoo: msg
Note right of platform.upload.announce: {"account": <account number>,\n"category": "collection",\n"content_type": "application/vnd.redhat.<servicename>.collection+tgz",\n"metadata": {..},\n"request_id": "abcd1234",\n"principal": <currently the org ID>,\n"org_id": <org_id>,\n"service": <servicename>,\n"size": 214015,\n"url": <URL to download the archive from S3>,\n"b64_identity": <base64 encoded identity>,\n"timestamp": "2022-05-10T09:14:40.513569064Z"}
s3permanent[#blue]->puptoo: Downloads archive from\nS3 bucket
puptoo->puptoo: Extracts facts from archive\nwith insights-core
alt success
puptoo->platform.inventory.hostingress: msg
Note right of puptoo: {"operation": "add_host",\n"data": [{"facts": {},"system_profile": {}}],\n"platform_metadata": <original_msg_json>}
else failure
puptoo[#blue]->platform.upload.validation: msg
Note left of puptoo: {"request_id": "abcd1234",\n"validation": "failure"}
end
platform.inventory.hostingress->hbi: msg
@enduml