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

EC2 instances export uses wrong API param for previous month

XMLWordPrintable

      Choosing previous month view in AWS details, then navigating to EC2 breakdown and exporting values results in invalid time_scope_value param value being passed to the API. 

      We expect previous month EC2 data to be exported for previous month view, to reproduce, navigate to AWS details, choose previous month view, then navigate to EC2 breakdown and export items. In browser console, you can see the api request will look like this:

      https://console.stage.redhat.com/api/cost-management/v1/reports/aws/resources/ec2-compute/?cost_type=calculated_amortized_cost&currency=USD&filter[resolution]=monthly&filter[time_scope_value]=-1&limit=0 

      The time_scope_value param is passed as -1, even though it should be -2 for previous month.

              dlabrecq@redhat.com Daniel Labrecque
              dchorvat@redhat.com Daniel Chorvatovic
              Votes:
              0 Vote for this issue
              Watchers:
              8 Start watching this issue

                Created:
                Updated:
                Resolved: