Update storage.pm

This commit is contained in:
matoy 2021-05-17 17:54:33 +02:00 committed by GitHub
parent 12eb26f7c5
commit b2159b0a9e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -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}}) {