fix(plugin): Azure CDN (#2898)

This commit is contained in:
itoussies 2021-06-21 09:45:58 +02:00 committed by GitHub
parent 35bd8cb906
commit 7d8a6c789f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -93,7 +93,7 @@ sub check_options {
$self->{az_resource_namespace} = 'Microsoft.Cdn';
$self->{az_timeframe} = defined($self->{option_results}->{timeframe}) ? $self->{option_results}->{timeframe} : 900;
$self->{az_interval} = defined($self->{option_results}->{interval}) ? $self->{option_results}->{interval} : 'PT5M';
$self->{az_aggregations} = ['Count'];
$self->{az_aggregations} = ['Total'];
if (defined($self->{option_results}->{aggregation})) {
$self->{az_aggregations} = [];
foreach my $stat (@{$self->{option_results}->{aggregation}}) {
@ -132,7 +132,7 @@ perl centreon_plugins.pl --plugin=cloud::azure::network::cdn::plugin --mode=requ
--resource='/subscriptions/<subscription_id>/resourceGroups/<resourcegroup_id>/providers/Microsoft.Cdn/profiles/<cdn_id>'
--aggregation='count' --warning-requests-count='800' --critical-requests-count='900'
Default aggregation: 'count' / 'minimum', 'maximum' and 'total' are valid.
Default aggregation: 'total' / 'minimum', 'maximum', 'count' and 'average' are valid.
=over 8