prices

package
v0.10.35 Latest Latest
Warning

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

Go to latest
Published: Apr 2, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FetchUsageData added in v0.10.12

func FetchUsageData(ctx *config.RunContext, project *schema.Project) (schema.UsageMap, error)

FetchUsageData fetches usage estimates derived from cloud provider reported usage from the Infracost Cloud Usage API for each supported resource in the project

func GetPricesConcurrent added in v0.7.15

func GetPricesConcurrent(ctx *config.RunContext, c *apiclient.PricingAPIClient, resources []*schema.Resource) error

GetPricesConcurrent gets the prices of all resources concurrently. Concurrency level is calculated using the following formula: max(min(4, numCPU * 4), 16)

func PopulateActualCosts added in v0.10.12

func PopulateActualCosts(ctx *config.RunContext, project *schema.Project) error

PopulateActualCosts fetches cloud provider reported costs from the Infracost Cloud Usage API and adds corresponding cost components to the project's resources

func PopulatePrices

func PopulatePrices(ctx *config.RunContext, project *schema.Project) error

func UploadCloudResourceIDs added in v0.10.13

func UploadCloudResourceIDs(ctx *config.RunContext, project *schema.Project) error

UploadCloudResourceIDs sends the project scoped cloud resource ids to the Usage API, so they can be used to provide usage estimates.

Types

This section is empty.

Jump to

Keyboard shortcuts

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