nsmcp::accessAggregationFields (private)

 nsmcp::accessAggregationFields data

Defined in /usr/local/ns/tcl/nsmcp/examples/nsmcp-openacs-api-docs.tcl

Convert access aggregation data into bounded result fields. @return Result dictionary.

Parameters:
data (required)

Partial Call Graph (max 5 caller/called nodes):
nsmcp::accessScanResult nsmcp::accessScanResult (private) nsmcp::accessAggregationFields nsmcp::accessAggregationFields nsmcp::accessScanResult->nsmcp::accessAggregationFields

Testcases:
No testcase defined.
Source code:
    set fields {}
    foreach key {poolWaitCount poolWaitMilliseconds poolWaitLimitMilliseconds} {
        if {[dict exists $data $key]} {
            lappend fields $key number [dict get $data $key]
        }
    }
    if {[dict exists $data failure] && [dict get $data failure] ne {}} {
        set failure {}
        foreach key {phase class code diagnosticId} {
            lappend failure $key string [dict get $data failure $key]
        }
        lappend fields failure object $failure failureAffects string {Peer and User-Agent aggregation; path, status and other scanned request aggregates are independent.}
    }
    return $fields
XQL Not present:
Generic, PostgreSQL, Oracle
[ hide source ] | [ make this the default ]
Show another procedure: