Skip to content

Commit e5e0dd4

Browse files
authored
Update script.js
comment has been updated
1 parent 26f2a64 commit e5e0dd4

File tree

1 file changed

+4
-4
lines changed
  • Server-Side Components/Scheduled Jobs/Top10jobsbyprocessingtime

1 file changed

+4
-4
lines changed

Server-Side Components/Scheduled Jobs/Top10jobsbyprocessingtime/script.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,12 @@ function topN(pTable, pColumn, pCount) {
1212
var i = 0;
1313
var stdout = [];
1414
var responseTime = [];
15-
stdout.push('\nTop ' + pCount + ' ' + pColumn + ' values from ' + pTable + '\n');
15+
stdout.push('\nTop ' + pCount + ' ' + pColumn + ' values from ' + pTable + '\n'); // creates a readable header line that will be show in the script output Rg. Top 10 url values from syslog_transaction
1616
while (ga.next() && (i++ < pCount)) {
1717
stdout.push('\n\n********** Execution Details for the column ' + ga.getValue(pColumn) + ' **********\n');
18-
var result1 = getResponseTimeDetails(pTable, 'type=scheduler^sys_created_onONLast 15 minutes@javascript:gs.beginningOfLast15Minutes()@javascript:gs.endOfLast15Minutes()^url=' + ga.getValue(pColumn));
19-
stdout.push('Executed total number of times : ' + ga.getValue(pColumn) + ' ' + ga.getAggregate('COUNT', pColumn));
20-
stdout.push('\nTop 10 response times : ' + result1);
18+
var result1 = getResponseTimeDetails(pTable, 'type=scheduler^sys_created_onONLast 15 minutes@javascript:gs.beginningOfLast15Minutes()@javascript:gs.endOfLast15Minutes()^url=' + ga.getValue(pColumn)); // get output for job executed last 15min
19+
stdout.push('Executed total number of times : ' + ga.getValue(pColumn) + ' ' + ga.getAggregate('COUNT', pColumn)); // this will give result like last 15 min how many time a particular job has been executed EG. 'JOB: Check Glide Service Status' executed 'n' times
20+
stdout.push('\nTop 10 response times : ' + result1); // this willl return the response time
2121
}
2222
gs.print(stdout.join("\n"));
2323
}

0 commit comments

Comments
 (0)