Skip to content

Commit

Permalink
Add last aggregator to datadog_timeboard resource (#14391)
Browse files Browse the repository at this point in the history
* Add last aggregator to datadog_timeboard resource

* Fix go fmt
  • Loading branch information
jesusvazquez authored and stack72 committed May 11, 2017
1 parent c9ef994 commit 3319b27
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion builtin/providers/datadog/resource_datadog_timeboard.go
Original file line number Diff line number Diff line change
Expand Up @@ -708,10 +708,11 @@ func validateAggregatorMethod(v interface{}, k string) (ws []string, errors []er
"max": {},
"min": {},
"sum": {},
"last": {},
}
if _, ok := validMethods[value]; !ok {
errors = append(errors, fmt.Errorf(
`%q contains an invalid method %q. Valid methods are either "average", "max", "min", or "sum"`, k, value))
`%q contains an invalid method %q. Valid methods are either "average", "max", "min", "sum", or "last"`, k, value))
}
return
}

0 comments on commit 3319b27

Please sign in to comment.