Boavizta / boaviztapi

🛠 Giving access to BOAVIZTA reference data and methodologies trough a RESTful API
GNU Affero General Public License v3.0
66 stars 23 forks source link

Calculating platform level impact #215

Open PierreRust opened 9 months ago

PierreRust commented 9 months ago

Problem

The API currently provides footprint for components (CPU, Ram, etc.) and IT devices, including devices like servers whose footprint is calculated based on the components the server is made of.

A common use case (at least in my case !) is to calculate a footprint of a whole platform, which is typically made of several groups of server and a set of other equipment such as switches, routeurs, firewall, server racks, etc. and boavizta provides no support for that. Currently I use the API to get estimate for each device and an excel file to aggregate the results.

Solution

Boaviztapi could provide an endpoint to calculate an estimation of a whole platform, based on its composition. The implementation could probably be similar to the one used for servers, where the composition of a server can be provided, and missing information is replaced by sane default value (and the calculation of a min and max value based on the variability of missing data, see #214 )

da-ekchajzer commented 9 months ago

Thanks for your feature request. I think it's a great idea. It would be a great use case for next Hackathon.