Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type EstimationInfo ¶
type EstimationInfo struct { UnitTime string UnitWattTime string UnitCarbonEmissionsTime string DateTime time.Time InfoByProvider map[providers.Provider]InfoByProvider }
EstimationInfo is the struct that contains the info of the estimation
type EstimationReport ¶
type EstimationReport struct { Info EstimationInfo Resources []EstimationResource UnsupportedResources []resources.Resource Total EstimationTotal }
EstimationReport is the struct that contains the estimation report
type EstimationResource ¶
type EstimationResource struct { Resource resources.Resource Power decimal.Decimal `json:"PowerPerInstance"` CarbonEmissions decimal.Decimal `json:"CarbonEmissionsPerInstance"` AverageCPUUsage decimal.Decimal TotalCount decimal.Decimal `json:"TotalCount"` // Count * ReplicationFactor }
EstimationResource is the struct that contains the estimation of a resource
type EstimationTotal ¶
type EstimationTotal struct { Power decimal.Decimal CarbonEmissions decimal.Decimal ResourcesCount decimal.Decimal }
EstimationTotal is the struct that contains the total estimation
type InfoByProvider ¶ added in v0.3.0
InfoByProvider is the struct that contains the info of the estimation by provider
Click to show internal directories.
Click to hide internal directories.