Object ::nsmcp::slow_requests (public)

 ::nsmcp::AccessDiagnosticTool ::nsmcp::slow_requests[i]

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

Testcases:
No testcase defined.
Source code:
namespace eval ::nsmcp {}
::nsf::object::alloc ::nsmcp::AccessDiagnosticTool ::nsmcp::slow_requests {set :adminExample {}
   set :adminSummary {}
   set :authorizer ::nsmcp::authorization
   set :defaultMode scan
   set :description {Requires a configured nslog slow-request log with the access-log field layout (peer, request identifier or ident placeholder, user, timestamp, request, status and bytes). Paths and thresholds come from the current server's loaded nslog module; use module for a nondefault configured name. Mode signals returns bucketed counts for the configured queue, filter and connection-thread thresholds in one pool or all pools over at most 24 hours; these overlapping signals come from the current slow-request log and are not all-request duration counts. Mode page returns bounded recent records with request identifiers, paths, pool, status and available phase timings, not SQL query profiles. Follow nextArguments for earlier page bytes; report coverage and unread bytes for both modes.}
   set :inputSchema {{} object {type string object properties object {mode object {type string string enum array {0 string scan 1 string page 2 string signals} description string {Bot routing: scan aggregates pages in a background job. For slow_requests, signals returns separate per-minute nslog queue, filter and connection-thread threshold counts for one pool; page returns bounded records.}} authenticationState object {type string string enum array {0 string anonymous 1 string authenticated 2 string unknown} description string {Filter by logged authentication state; no identity is disclosed.}} aggregateTraffic object {type string boolean default boolean false description string {Scan mode only: address-free source concentration and User-Agent rankings over all selected records, independent of evidence limits. No peer-disclosure permission required.}} path object {type string string description string {Exact queryless path, e.g. /bugtracker/openacs/}} scanStrategy object {type string string enum array {0 string window 1 string full} default string window description string {Background scans: window seeks by completion timestamps with a 300s margin and explicit ordering assumptions; full examines the entire current file.}} lastMinutes object {type string integer minimum number 1 maximum number 1440 default number 60} from object {type string number} to object {type string number} limit object {type string integer minimum number 1 maximum number 100 default number 20} pool object {type string string default string bots description string {Exact pool, or all for signals mode}} bucketSeconds object {type string integer enum array {0 number 60 1 number 300 2 number 900 3 number 3600} description string {Signals mode only; defaults to 900 for windows over six hours, 300 over three hours, otherwise 60}} module object {type string string default string nslog} category object {type string string enum array {0 string matching-rule-in-target 1 string matching-rule-other-pool-candidate 2 string bot-like-unmatched-heuristic 3 string no-target-rule-match 4 string unknown 5 string native-target-in-target 6 string native-target-other-pool-candidate 7 string bot-like-routed-elsewhere-heuristic 8 string native-other-pool} description string {Bot routing only: retain evidence for this exact category. categoryTotals still covers all matching records; selectedMatches and filteredOutRecords distinguish selection from omitted evidence.}} includePeerAddresses object {type string boolean default boolean false} beforeOffset object {type string integer minimum number 0} sourceBytes object {type string integer minimum number 0} sourceIdentity object {type string string} mappingIdentity object {type string string}} additionalProperties boolean false}}
   set :maxAggregateSources 100000
   set :maxAggregateUserAgents 4096
   set :maxReadBytes 4194304
   set :name slow_requests
   set :operation slow
   set :outputSchema {}
   set :peerRedactor ::nsmcp::mcpPeerLogRedactor
   set :permission diagnostics.logs.read
   set :redactor ::nsmcp::mcpLogRedactor
   set :routing ::nsmcp::requestRouting
   set :seekMinimumBytes 8388608
   set :service ::nsmcp::logService}
XQL Not present:
Generic, PostgreSQL, Oracle
[ hide source ] | [ make this the default ]
Show another procedure: