From c1b3aa74c9deb309c83aabcfc3fa10e5006c3202 Mon Sep 17 00:00:00 2001 From: matoy Date: Mon, 17 May 2021 17:54:33 +0200 Subject: [PATCH] Update storage.pm --- centreon-plugins/cloud/azure/database/mysql/mode/storage.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/centreon-plugins/cloud/azure/database/mysql/mode/storage.pm b/centreon-plugins/cloud/azure/database/mysql/mode/storage.pm index b919e41aa..c8e323642 100644 --- a/centreon-plugins/cloud/azure/database/mysql/mode/storage.pm +++ b/centreon-plugins/cloud/azure/database/mysql/mode/storage.pm @@ -126,7 +126,7 @@ sub check_options { $self->{az_resource_type} = $resource_type; $self->{az_resource_namespace} = 'Microsoft.DBforMySQL'; $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_interval} = defined($self->{option_results}->{interval}) ? $self->{option_results}->{interval} : 'PT15M'; $self->{az_aggregations} = ['Maximum']; if (defined($self->{option_results}->{aggregation})) { $self->{az_aggregations} = []; @@ -146,7 +146,7 @@ sub check_options { my $metrics_mapping_transformed; foreach my $metric_type (@{$resource_mapping->{$resource_type}}) { - $metrics_mapping_transformed->{$metric_type} = $self->{resource_mapping}->{$metric_type}; + $self->{metrics_mapping_transformed}->{$metric_type} = $self->{metrics_mapping}->{$metric_type}; } foreach my $metric (keys %{$self->{metrics_mapping_transformed}}) {