estimation

package
v0.4.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 20, 2023 License: Apache-2.0 Imports: 4 Imported by: 0

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

type InfoByProvider struct {
	AverageCPUUsage float64
	AverageGPUUsage float64
}

InfoByProvider is the struct that contains the info of the estimation by provider

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL