Uploaded image for project: 'Cost Management'
  1. Cost Management
  2. COST-2223 Async Export Service for downloading report data
  3. COST-2552

create kafka listener for platform.export.requests topic

XMLWordPrintable

    • Icon: Sub-task Sub-task
    • Resolution: Obsolete
    • Icon: Normal 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

       

       

            Unassigned Unassigned
            mskarbek Michael Skarbek
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: