tools/riemann-aws/lib/riemann/tools/aws/s3_status.rb in riemann-tools-1.10.0 vs tools/riemann-aws/lib/riemann/tools/aws/s3_status.rb in riemann-tools-1.11.0
- old
+ new
@@ -19,10 +19,10 @@
opt :statistic, 'Statistic to retrieve, multi=true, e.g. --statistic=Average --statistic=Maximum', type: String,
multi: true, required: true
def base_metrics
# get last 60 seconds
- start_time = (Time.now.utc - 3600 * 24 * 1).iso8601
+ start_time = (Time.now.utc - (3600 * 24 * 1)).iso8601
end_time = Time.now.utc.iso8601
# The base query that all metrics would get
{
'Namespace' => 'AWS/S3',