cost

package
v0.0.0-...-6c1e425 Latest Latest
Warning

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

Go to latest
Published: Aug 23, 2024 License: MIT Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewCostController

func NewCostController(radixapi radix_api.RadixAPIClient, costService service.CostService) models.Controller

NewCostController Constructor

Types

type CostHandler

type CostHandler struct {
	// contains filtered or unexported fields
}

CostHandler Instance variables

func NewCostHandler

func NewCostHandler(accounts radixmodels.Accounts, radixapi radix_api.RadixAPIClient, costService service.CostService) CostHandler

NewCostHandler Constructor

func (*CostHandler) GetFutureCost

func (costHandler *CostHandler) GetFutureCost(ctx context.Context, appName string) (*models.ApplicationCost, error)

GetFutureCost estimates cost for the next 30 days based on last run

func (*CostHandler) GetTotalCost

func (costHandler *CostHandler) GetTotalCost(ctx context.Context, fromTime, toTime *time.Time, appName *string) (*models.ApplicationCostSet, error)

GetTotalCost handler for GetTotalCost

Jump to

Keyboard shortcuts

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