Added cost monitoring data retrieval API with cached response
Changes
costexplorer_client is enriched with a get_cost_data method to retrieve paginated results from CostExplorer API
a new endpoint to retrieve cost data is added at /cost-monitoring/clusters/<cluster-name>
the new API accepts two parameters, start (mandatory), end (non mandatory, defaults to now()), both are UTC ISO 8601 datetimes
right now we still need to test the actual caching by the browser (to see if the implementation on the backend is fine or not), and needed headers will be provided in a subsequent iteration (Cache-Control, Expires and Last-Modified)
Description
Added cost monitoring data retrieval API with cached response
Changes
costexplorer_client
is enriched with a get_cost_data method to retrieve paginated results from CostExplorer API/cost-monitoring/clusters/<cluster-name>
start
(mandatory),end
(non mandatory, defaults tonow()
), both are UTC ISO 8601 datetimesHow Has This Been Tested?
References
PR Quality Checklist
react-i18next
library (useTranslation hook and/or Trans component), see an example herenpm run build
builds without any errorIn order to increase the likelihood of your contribution being accepted, please make sure you have read both the Contributing Guidelines and the Project Guidelines
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.