diff --git a/cloud/google/gcp/management/stackdriver/mode/getmetrics.pm b/cloud/google/gcp/management/stackdriver/mode/getmetrics.pm index 53d2d09d0..ce6b9e97b 100644 --- a/cloud/google/gcp/management/stackdriver/mode/getmetrics.pm +++ b/cloud/google/gcp/management/stackdriver/mode/getmetrics.pm @@ -101,6 +101,7 @@ sub new { 'metric:s' => { name => 'metric' }, 'api:s' => { name => 'api' }, 'extra-filter:s@' => { name => 'extra_filter' }, + 'timeframe:s' => { name => 'timeframe' }, 'aggregation:s@' => { name => 'aggregation' } }); @@ -234,6 +235,14 @@ Set dimension value (Required). Set instance key (By default, --dimension-name option is used). +=item B<--timeframe> + +Set timeframe in seconds (i.e. 3600 to check last hour). + +=item B<--aggregation> + +Set monitor aggregation (Can be multiple, Can be: 'minimum', 'maximum', 'average', 'total'). + =item B<--warning-metric> Threshold warning.