ASNMTAP

 view release on metacpan or  search on metacpan

applications/htmlroot/cgi-bin/moderator/generateCollectorCrontabSchedulingReport.pl  view on Meta::CPAN

            if (defined $insertStatus) {
              # the color for each crontab bar
              push (@colorsCrontab,      $COLORSRRD{$STATE{$insertStatus}});

              # the color for each timeslot bar
              push (@colorsTimeslot,     $COLORSRRD{'IN PROGRESS'});

              # the data points for each test result matching the corresponding label
              push (@dataPoints,         $uKeys{$uKey}->{numberOfLabel});

              my $endpointCurrentTimeslot = $currentDate + ($stepValue[$uKeys{$uKey}->{numberOfLabel}] * 60);
              my $restCurrentTimeslot = ($currentTimeslot eq 'off' and $endpointCurrentTimeslot > $sqlEndDate) ? $sqlEndDate : $endpointCurrentTimeslot;

              # the timeslot start dates and end dates for the tasks
              push (@crontabStartDate,   perlchartdir::chartTime2($currentDate));
              push (@crontabEndDate,     perlchartdir::chartTime2($currentDate + $step));
              push (@crontabEndTimeslot, perlchartdir::chartTime2($restCurrentTimeslot));
            }
          }
        }
      }
    }

applications/htmlroot/cgi-bin/moderator/generateCollectorDaemonSchedulingReport.pl  view on Meta::CPAN


              # the color for each crontab bar
              push (@colorsCrontab,      $COLORSRRD{$STATE{$insertStatus}});

              # the color for each timeslot bar
              push (@colorsTimeslot,     $COLORSRRD{'IN PROGRESS'});

              # the data points for each test result matching the corresponding label
              push (@dataPoints,         $uKeys{$uKey}->{numberOfLabel});

              my $endpointCurrentTimeslot = $currentDate + ($stepValue[$uKeys{$uKey}->{numberOfLabel}] * 60);
              my $restCurrentTimeslot = ($currentTimeslot eq 'off' and $endpointCurrentTimeslot > $sqlEndDate) ? $sqlEndDate : $endpointCurrentTimeslot;

              # the timeslot start dates and end dates for the tasks
              push (@crontabStartDate,   perlchartdir::chartTime2($currentDate));
              push (@crontabEndDate,     perlchartdir::chartTime2($currentDate + $step));
              push (@crontabEndTimeslot, perlchartdir::chartTime2($restCurrentTimeslot));
            }
          }
        }
      }
    }

applications/htmlroot/cgi-bin/moderator/generatePluginCrontabSchedulingReport.pl  view on Meta::CPAN

                    push (@colorsCrontab,      $COLORSRRD{$STATE{$insertStatus}});
                    push (@colorsTimeslot,     $COLORSRRD{'IN PROGRESS'});
                    push (@dataPoints,         $dataPoint);
                    push (@crontabStartDate,   perlchartdir::chartTime2($currentDate));
                    push (@crontabEndDate,     perlchartdir::chartTime2($currentDate));
                    push (@crontabEndTimeslot, perlchartdir::chartTime2($currentDate - $restPreviousTimeslot));
                    $restPreviousTimeslot = 0;
                    $restCurrentTimeslot  = $stepValue;
                  }

                  my $endpointCurrentTimeslot = (($min * 60) + $stepValue);

                  if ($endpointCurrentTimeslot > 3600) {
                    $restPreviousTimeslot = $endpointCurrentTimeslot - 3600;
                    $restCurrentTimeslot  = $stepValue - $restPreviousTimeslot;
                  }

                  # the color for each crontab bar
                  push (@colorsCrontab,      $COLORSRRD{$STATE{$insertStatus}});

                  # the color for each timeslot bar
                  push (@colorsTimeslot,     $COLORSRRD{'IN PROGRESS'});

                  # the data points for each test result matching the corresponding label

lib/ASNMTAP/Asnmtap/Plugins.pod  view on Meta::CPAN

=item 3

if range is of format "start:" and end is not specified, assume end is infinity

=item 4

to specify negative infinity, use "~"

=item 5

alert is raised if metric is outside start and end range (inclusive of endpoints)

=item 6

if range starts with "@", then alert if inside this range (inclusive of endpoints)

=back

=item Note

Not all plugins are coded to expect ranges in this format. It is planned for a future release to provide standard libraries to parse and compare metrics against ranges. There will also be some work in providing multiple metrics.

=back

=item Performance data

lib/ASNMTAP/Asnmtap/Plugins/SOAP.pod  view on Meta::CPAN


=item customArguments

optional, when you need to pass parameters to your own custom defined function, this can be done with customArguments.

 customArguments: SCALAR, ARRAY, HASH,
                  REF SCALAR, REF ARRAY, REF HASH

=item proxy

This lets you specify an endpoint (service address) and also loads the required module at the same time.

 proxy: 'http://services.soaplite.com/hibye.cgi'

When using SOAP with basic authentication you can add username and password to your URL as follows:

 proxy: 'http://USERNAME:PASSWORD@services.soaplite.com/hibye.cgi'

a required scalar.

=item credentials



( run in 1.629 second using v1.01-cache-2.11-cpan-27979f6cc8f )