Skip to content

Commit

Permalink
chore: Update cost scanner to query costs for the past 3 months
Browse files Browse the repository at this point in the history
  • Loading branch information
cmendible committed Jul 30, 2024
1 parent 7274c36 commit 2ab8e27
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/scanners/cost.go
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ func (s *CostScanner) QueryCosts() (*CostResult, error) {
timeframeType := armcostmanagement.TimeframeTypeCustom
etype := armcostmanagement.ExportTypeActualCost
toTime := time.Now().UTC()
fromTime := time.Date(toTime.Year(), toTime.Month(), 1, 0, 0, 0, 0, time.UTC)
fromTime := time.Date(toTime.Year(), toTime.Month()-3, 1, 0, 0, 0, 0, time.UTC)
sum := armcostmanagement.FunctionTypeSum
dimension := armcostmanagement.QueryColumnTypeDimension
qd := armcostmanagement.QueryDefinition{
Expand Down

0 comments on commit 2ab8e27

Please sign in to comment.