Add last aggregator to datadog_timeboard resource (#14391)

* Add last aggregator to datadog_timeboard resource

* Fix go fmt
This commit is contained in:
Jesus Vazquez 2017-05-11 14:23:22 +02:00 committed by Paul Stack
parent c9ef9942c6
commit 3319b27123
1 changed files with 2 additions and 1 deletions

View File

@ -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
}