nsmcp::LogService method summary (protected)

 <instance of nsmcp::LogService[i]> summary snapshot mappingsVar

Defined in /usr/local/ns/tcl/nsmcp/log-tools.tcl

Parameters:
snapshot (required)
mappingsVar (required)

Testcases:
No testcase defined.
Source code:
upvar 1 $mappingsVar mappings
set handle [ns_crypto::randombytes -encoding hex 32]
dict set mappings $handle [dict get $snapshot resultHandle]
set triples [list resultHandle string $handle server string [ns_info server]]
foreach key {resultCount generation sourceBytes} {
    lappend triples $key number [dict get $snapshot $key]
}
foreach key {scanIncomplete pending cacheFull} {
    lappend triples $key boolean [dict get $snapshot $key]
}
if {[dict exists $snapshot limitReached]} {
    lappend triples limitReached boolean [dict get $snapshot limitReached]
}
if {[dict exists $snapshot cursor]} {
    lappend triples examinedBytes number [dict get $snapshot cursor]
}
return $triples
XQL Not present:
Generic, PostgreSQL, Oracle
[ hide source ] | [ make this the default ]
Show another procedure: