nsmcp::LogCorrelation method requestContexts (public)

 <instance of nsmcp::LogCorrelation[i]> requestContexts identifiers \
    [ limit ]

Defined in /usr/local/ns/tcl/nsmcp/log-traffic-summary.tcl

Correlate a bounded batch in one forward pass per configured file.

Parameters:
identifiers (required)
1..20 exact dash-delimited log-thread identifiers
limit (optional, defaults to "100")
maximum retained records per source
Returns:
combined system/access snapshots; records retain their own IDs

Testcases:
No testcase defined.
Source code:
if {![string is integer -strict $limit] || $limit < 1 || $limit > 100} {error "batch result limit must be 1..100"}
if {[llength $identifiers] < 1 || [llength $identifiers] > 20} {error "expected 1..20 request identifiers"}
set identifiers [lsort -unique $identifiers]
set connectionIds {}
foreach id $identifiers {
    if {![${:parser} validRequestIdentifier $id]} {error "expected complete request identifiers"}
    if {[${:parser} validConnectionIdentifier $id]} {lappend connectionIds $id}
}
set access {}
if {$connectionIds ne ""} {
    foreach source ${:accessSearches} {dict set access $source [$source search $connectionIds {} accessMany $limit]}
}
return [dict create requestIdentifiers $identifiers  system [${:systemSearch} search $identifiers {} systemMany $limit] access $access]
XQL Not present:
Generic, PostgreSQL, Oracle
[ hide source ] | [ make this the default ]
Show another procedure: