From 57434327aaf95dcd4ecbee4819db172f8716ad45 Mon Sep 17 00:00:00 2001 From: lchrdn <89968908+lchrdn@users.noreply.github.com> Date: Tue, 6 Sep 2022 15:22:23 +0200 Subject: [PATCH] change endTime to startTime (#3884) --- .../cloud/azure/management/recovery/mode/backupjobsstatus.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/centreon-plugins/cloud/azure/management/recovery/mode/backupjobsstatus.pm b/centreon-plugins/cloud/azure/management/recovery/mode/backupjobsstatus.pm index fb4fcaf6f..7329d5bc1 100644 --- a/centreon-plugins/cloud/azure/management/recovery/mode/backupjobsstatus.pm +++ b/centreon-plugins/cloud/azure/management/recovery/mode/backupjobsstatus.pm @@ -157,7 +157,7 @@ sub manage_selection { && $job->{properties}->{entityFriendlyName} !~ /$self->{option_results}->{filter_name}/); my $duration = $options{custom}->convert_duration(time_string => $job->{properties}->{duration}); - my $end_time = $options{custom}->convert_iso8601_to_epoch(time_string => $job->{properties}->{endTime}); + my $end_time = $options{custom}->convert_iso8601_to_epoch(time_string => $job->{properties}->{startTime}); my $ts_timeframe = (defined($self->{option_results}->{lookback}) && $self->{option_results}->{lookback} ne '') ? (time() - $self->{option_results}->{lookback}) : 0; next if (defined($self->{option_results}->{lookback}) && $self->{option_results}->{lookback} ne '' && $ts_timeframe > $end_time); @@ -213,7 +213,7 @@ Example: --filter-counters='^total-completed$' =item B<--lookback> Specify in seconds since when you want to have backup job status. -Based on endTime property of the job. +Based on startTime property of the job. Default: all existing job statuses are displayed. =item B<--warning-status>