Uploaded image for project: 'Cost Management'
  1. Cost Management
  2. COST-3298

POST API Endpoint to process new report

XMLWordPrintable

    • Icon: Story Story
    • Resolution: Done
    • Icon: Normal Normal
    • 2023Q2
    • None
    • None

      Summary

      API Endpoint

      We will need a new API that will be reachable at /api/cost-management/v1/reports/hcs/
      This API endpoint must support POST to allow a customer to alert us that a new report is available to download
      The endpoint will require at a minimum the source UUID (or a unique identifier that we can show the customer in the wizard create flow, but why not the source UUID?) and the path to the file in S3 where the saved Athena query is available to download

      {{{}}
      "source_uuid": "UUID",
      "file_paths": ["s3://aws-athena-query-results-589173575009-us-east-1/Unsaved/2022/11/07/0d34ec6a-1cab-4c89-a03e-cb471c0ba067.csv"
      }]

      The endpoint will then trigger the Orchestrator to process the CSV in as-close-to the typical flow as possible

            rhn-support-lcouzens Luke Couzens
            aberglun@redhat.com Andrew Berglund
            Daniel Chorvatovic Daniel Chorvatovic
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: