-
Notifications
You must be signed in to change notification settings - Fork 4
Open
Description
The docker image has hardcoded 5 years lifetime duration:
keit.go:
59 func getEmbeddedValue(instanceType string) (float64, error) {
60 url := fmt.Sprintf("http://boaviztapi-service:5000/v1/cloud/instance?provider=aws&instance_type=%s&verbose=false&duration=43800&criteria=gwp", instanceType)
43800/hour per day/days per year.
43800/24/365 = 5 years
From: https://api.boavizta.org//docs#/cloud/instance_cloud_impact_v1_cloud_instance_get :
DurationUsage impacts can be given as a router parameter, in hours. If no duration is given, the impact is assess for the all life duration of the asset.
Metadata
Metadata
Assignees
Labels
No labels