Closed JacobValdemar closed 9 months ago
Thanks for this bug report. We fixed it in the dev version: https://github.com/Boavizta/boaviztapi/blob/dev/boaviztapi/data/archetypes/cloud/aws.csv
The dev version should be released soon. I recommend you to use it as of today.
GPU data is not used because we don't yet have a method to take their impacts into account. Dedicated issue : https://github.com/Boavizta/boaviztapi/issues/65
@da-ekchajzer OMG I have been using main for so long and wondered why so much seemed outdated. I am happy that you shared with me that you have a dev branch. Will use that going forward 🚀
Dev doc : dev.doc.api.boavizta.org/
Since we made some breaking changes, here is a draft of the pre-release :
/v1/cloud/aws
)/v1/cloud/instance
)provider
(in the url for GET requests, in the body for POST requests).hours_use_time
.{
"usage": {
"hours_use_time": 2,
}
}
duration
and allocate embedded impacts on the duration
hover the lifetime of the device.use_time_ratio
which is the proportion of time the device is used during the given duration. When a device is always used, the usage ratio is 1. When a device is never used, the usage ratio is 0.{
"usage": {
"use_time_ratio": 0.5,
}
}
"gwp": {
"manufacture": 1900,
"use": 260,
"unit": "kgCO2eq"
},
or
"manufacture_impacts": {
"gwp": {
"value": 23.8,
"unit": "kgCO2eq"
},
"pe": {
"value": 353,
"unit": "MJ"
},
"adp": {
"value": 0.02,
"unit": "kgSbeq"
}
}
}
"impacts": {
"gwp": {
"embedded": {
"value": 6.68,
"min": 6.68,
"max": 6.68,
"warnings": [
"End of life is not included in the calculation"
]
},
"use": "not implemented",
"unit": "kgCO2eq",
"description": "Total climate change"
},
"USAGE": {
...
"usage_impacts": {
...
}
"avg_power": {
"value": 94.62364134445255,
"unit": "W",
"status": "COMPLETED",
"source": null
},
...
}
"CPU-1": {
"impacts": {
"gwp": {
"embedded": {
"value": 64.7,
"significant_figures": 3,
"min": 24.6,
"max": 149,
"warnings": [
"End of life is not included in the calculation"
]
},
"use": {
"value": 160,
"significant_figures": 2,
"min": 160,
"max": 160
},
"unit": "kgCO2eq",
"description": "Total climate change"
}
},
"die_size_per_core": {
"value": 0.47078947368421054,
"status": "COMPLETED",
"unit": "mm2",
"source": "Average for Skylake",
"min": 0.07,
"max": 1.02
}
...
}
ToDo
Bug description
In
aws.csv
the data contains two columns with the nameconfiguration.gpu.memory
. Looking at the data, maybe the first instance should have been named toconfiguration.gpu.name
?https://github.com/Boavizta/boaviztapi/blob/5b6ef428cbf11e297c5c11554438d5d1b8667b19/boaviztapi/data/devices/cloud/aws.csv?plain=1#L1
To Reproduce
Expected behavior
JSON OUTPUT
Additional context