Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var EmissionsPerRegion map[string]Emissions
EmissionsPerRegion is a map of regions to their emissions
Functions ¶
This section is empty.
Types ¶
type Coefficients ¶
type Coefficients struct { CPUMinWh decimal.Decimal `json:"cpu_min_wh"` CPUMaxWh decimal.Decimal `json:"cpu_max_wh"` StorageHddWhTb decimal.Decimal `json:"storage_hdd_wh_tb"` StorageSsdWhTb decimal.Decimal `json:"storage_ssd_wh_tb"` NetworkingWhGb decimal.Decimal `json:"networking_wh_gb"` MemoryWhGb decimal.Decimal `json:"memory_wh_gb"` PueAverage decimal.Decimal `json:"pue_average"` }
Coefficients is a struct that contains the coefficients for the energy estimation
type CoefficientsProviders ¶
type CoefficientsProviders struct { AWS Coefficients `json:"AWS"` GCP Coefficients `json:"GCP"` Azure Coefficients `json:"Azure"` }
CoefficientsProviders is a struct that contains the coefficients for the energy estimation per provider
func GetEnergyCoefficients ¶
func GetEnergyCoefficients() *CoefficientsProviders
GetEnergyCoefficients returns the coefficients for the energy estimation
func (*CoefficientsProviders) GetByProvider ¶ added in v0.3.0
func (cps *CoefficientsProviders) GetByProvider(provider providers.Provider) Coefficients
GetByProvider returns the coefficients for the energy estimation of a provider
Click to show internal directories.
Click to hide internal directories.