-
Sub-task
-
Resolution: Obsolete
-
Normal
-
None
-
None
-
None
-
None
-
1
-
False
-
None
-
False
-
COST-2449 - Improvements to export data
Create a Kafka consumer for listening to the export topic for messages pertaining to cost-management.
The messages will contain this information:
- uuid: export identifier
- application: identifier for the application
- resource: identifier for the resource/dataset
- format: JSON, CSV or PDF
- x-rh-identity: the auth header of the user that requested the export. Can be used for logging, or for custom authorization/filtering by the app.
- filters: application-specific schemaless JSON object
The message header will contain the application type for filtering purposes.
The listener will gather data from the db and send it in a POST to:
POST /app/export/v1/upload/{uuid}/{application}/{resource}
If an error is encountered, send a POST to:
/app/export/v1/error/{uuid}/{application}/{resource}
Response parameters:
- code: machine-readable error code
- message: human readable error message