Skip to content

Commit

Permalink
Fix billing.go aws.GetStartTimeEndTime (#21531)
Browse files Browse the repository at this point in the history
This PR is to fix this error introduced in #20875:
```
# github.com/elastic/beats/v7/x-pack/metricbeat/module/aws/billing
../x-pack/metricbeat/module/aws/billing/billing.go:119:47: not enough arguments in call to "github.com/elastic/beats/v7/x-pack/metricbeat/module/aws".GetStartTimeEndTime
	have (time.Duration)
	want (time.Duration, time.Duration)
Error: error getting default metricsets: Error running subcommand to get metricsets: running "go run /home/travis/gopath/src/github.com/elastic/beats/x-pack/metricbeat/scripts/msetlists/main.go" failed with exit code 2
```
  • Loading branch information
kaiyan-sheng authored Oct 5, 2020
1 parent 84f6311 commit 931e3ca
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion x-pack/metricbeat/module/aws/billing/billing.go
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ func (m *MetricSet) Fetch(report mb.ReporterV2) error {
startDate, endDate := getStartDateEndDate(m.Period)

// Get startTime and endTime
startTime, endTime := aws.GetStartTimeEndTime(m.Period)
startTime, endTime := aws.GetStartTimeEndTime(m.Period, m.Latency)

// get cost metrics from cost explorer
awsConfig := m.MetricSet.AwsConfig.Copy()
Expand Down

0 comments on commit 931e3ca

Please sign in to comment.