add timeframe option for stackdriver

This commit is contained in:
garnier-quentin 2021-02-04 16:19:47 +01:00
parent 471b585db4
commit db7d4d8dd1
1 changed files with 9 additions and 0 deletions

View File

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