estimate

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: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type EstimationReport

type EstimationReport struct {
	Resource        resources.GenericResource
	Power           decimal.Decimal `json:"PowerPerInstance"`
	CarbonEmissions decimal.Decimal `json:"CarbonEmissionsPerInstance"`
	AverageCPUUsage decimal.Decimal
	Count           decimal.Decimal
}

EstimationReport is the struct that contains the estimation of a resource

func GetEstimation

func GetEstimation(resource resources.GenericResource) (EstimationReport, error)

GetEstimation returns the estimation of a resource

func GetEstimationFromInstanceType

func GetEstimationFromInstanceType(instanceType string, zone string, provider providers.Provider) (EstimationReport, error)

GetEstimationFromInstanceType returns the estimation of a resource from its instance type

Jump to

Keyboard shortcuts

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