ASNMTAP
view release on metacpan or search on metacpan
applications/htmlroot/cgi-bin/moderator/generateCollectorCrontabSchedulingReport.pl view on Meta::CPAN
175176177178179180181182183184185186187188189190191192193194195196
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
214215216217218219220221222223224225226227228229230231232233234235
# 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
175176177178179180181182183184185186187188189190191192193194195196197198
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
9769779789799809819829839849859869879889899909919929939949959969979989991000=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
126127128129130131132133134135136137138139140141142143144145146=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.
When using SOAP with basic authentication you can add username and password to your URL as follows:
a required scalar.
=item credentials
( run in 0.271 second using v1.01-cache-2.11-cpan-3cd7ad12f66 )