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
Click to show internal directories.
Click to hide internal directories.