nsmcp::EpisodeOverview method waitingHighlights (protected)

 <instance of nsmcp::EpisodeOverview[i]> waitingHighlights \
    historyFields from bucket

Defined in /usr/local/ns/tcl/nsmcp/episode-overview.tcl

Parameters:
historyFields (required)
from (required)
bucket (required)

Testcases:
No testcase defined.
Source code:
lassign [:field $historyFields poolThreads] type threads
if {$type ne "object"} {
    return {available boolean false reason string thread-history-unavailable}
}
lassign [:field $threads from] type value
if {$type eq "number"} {set from $value}
lassign [:field $threads bucketSeconds] type value
if {$type eq "number" && $value>0} {set bucket $value}
lassign [:field $threads pools] type pools
if {$type ne "object" || $pools eq {}} {
    return {available boolean false reason string pool-history-unavailable}
}
set peaks {}
foreach {name type fields} $pools {
    if {$type ne "object"} {continue}
    lappend peaks $name object [:peak $fields waitingMax  {waitingSampleCount busyMax configuredMax sampleCount} $from $bucket]
}
return [list available boolean true from number $from bucketSeconds number $bucket  pools object $peaks]
XQL Not present:
Generic, PostgreSQL, Oracle
[ hide source ] | [ make this the default ]
Show another procedure: