nsmcp::summaryUrlFields

 nsmcp::summaryUrlFields

Defined in

Partial Call Graph (max 5 caller/called nodes):
errorSummary errorSummary nsmcp::summaryUrlFields nsmcp::summaryUrlFields errorSummary->nsmcp::summaryUrlFields instproc instproc instproc->nsmcp::summaryUrlFields nsmcp::CachedLogSearch nsmcp::CachedLogSearch nsmcp::CachedLogSearch->nsmcp::summaryUrlFields

Testcases:
No testcase defined.
Source code:
    set ordered {}
    dict for {path entry} [dict get $stats urls] {
        lappend ordered [list [dict get $entry count] $path $entry]
    }
    # Stable tie order; counts are exact for retained paths across the full scan.
    set ordered [lsort -integer -decreasing -index 0 [lsort -index 1 $ordered]]
    set rows {}
    set i 0
    set returned 0
    set omittedRecords 0
    set omittedGroups 0
    foreach row $ordered {
        lassign $row count path entry
        if {$i >= $maxGroups} {
            incr omittedRecords $count
            incr omittedGroups
            continue
        }
        set methods {}
        set auth {}
        dict for {method n} [dict get $entry methods] {
            lappend methods $method number $n
        }
        dict for {state n} [dict get $entry authenticationStates] {
            lappend auth $state number $n
        }
        lappend rows $i object [list path string [$redactor message $path] count number $count  firstAt number [dict get $entry firstAt] lastAt number [dict get $entry lastAt]  methodCounts object $methods authenticationStates object $auth  representativeRequestIdentifier string [dict get $entry representativeRequestIdentifier]]
        incr returned $count
        incr i
    }
    set fields {}
    foreach name {recordCount truncatedRecordCount recordsWithUrl unknownUrlRecords oversizedUrlRecords conflictingUrlRecords capacityOmittedRecords} {
        lappend fields $name number [dict get $stats $name]
    }
    set countsComplete [expr {[dict get $stats unknownUrlRecords]==0 && [dict get $stats capacityOmittedRecords]==0 && [dict get $stats truncatedRecordCount]==0 && $uncertain==0}]
    set methods {}
    dict for {method n} [dict get $stats methods] {
        lappend methods $method number $n
    }
    return [concat $fields [list evidenceSource string system-log-request-diagnostic  countUnit string physical-log-records pathScope string queryless-logged-path  queryValuesExcluded boolean true pathMaxBytes number 1024 groupCapacity number 4096  trackedDistinctUrls number [dict size [dict get $stats urls]]  distinctUrlsIsLowerBound boolean [expr {!$countsComplete || !$scanComplete}]  returnedUrlCount number $i returnedUrlRecords number $returned  rankedOmittedGroups number $omittedGroups rankedOmittedRecords number $omittedRecords  countsComplete boolean $countsComplete scanComplete boolean $scanComplete  aggregationComplete boolean [expr {$countsComplete && $scanComplete}]  rankingComplete boolean [expr {$countsComplete && $scanComplete && $omittedGroups==0}]  responseStatusesAvailable boolean false unknownResponseStatusRecords number [dict get $stats recordCount]  methodCounts object $methods urls array $rows  limitations string {Counts cover literal-selected physical log records within the requested window across the examined snapshot, before detailed-group and ranking limits. They are not unique requests or expanded suppressed occurrences. Only explicit request_info diagnostic lines establish a URL; arbitrary message/header URLs are ignored. Query strings, fragments, origins and peer addresses are not returned here. Paths retain case and percent encoding. Missing, conflicting and oversized paths remain unknown; oversized/conflicting counts are subsets of unknownUrlRecords. Capacity omissions are not ranking omissions, and can hide frequent paths. Response statuses are not inferred from warning wording; use selective correlation if needed. File retention and truncated literal-selection evidence remain separate coverage limits.}]]
XQL Not present:
Generic, PostgreSQL, Oracle
[ hide source ] | [ make this the default ]
Show another procedure: