ASNMTAP

 view release on metacpan or  search on metacpan

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

175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
        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

214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
          # 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

175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
  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

976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
=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

126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
=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 )