Object ::nsmcp::history (public)
::nsmcp::ServerHistory ::nsmcp::history
Defined in /usr/local/ns/tcl/nsmcp/stats-tools.tcl
- Testcases:
- No testcase defined.
Source code: namespace eval ::nsmcp {} ::nsf::object::alloc ::nsmcp::ServerHistory ::nsmcp::history {set :adminExample {} set :adminSummary {} set :command ::ns_stats set :description {Query persisted ns_stats intervals for the authenticated server. For peak analysis use mode summary. Mode pool-threads returns sampled busy and maximum connection threads and the highest sampled waiting requests per pool by minute or coarser bucket, plus process-wide database-pool SQL/handle-wait and block-device I/O indicators derived from the same retained samples. Waiting is a concurrent queue gauge, not a count of slow-log threshold events; sampling can miss a shorter peak. Counts, durations, rates and sampled thread gauges have different units; missing intervals remain null. mode records (default) retains raw paging. Use lastMinutes, period previous-hour, or explicit from/to (Unix seconds; half-open interval, at most 24 hours). Return persistence status and coverage including gaps, restarts, evictions and write failures. Never assume complete coverage from record count. Does not enable sampling or persistence. Requires separately configured ns_stats SQLite history.} set :inputSchema {{} object {type string object properties object {mode object {type string string enum array {0 string records 1 string summary 2 string pool-threads} default string records} pool object {type string string description string {Exact connection pool or all; required for pool-threads}} bucketSeconds object {type string integer enum array {0 number 60 1 number 300 2 number 900 3 number 3600} description string {pool-threads only; defaults to 900 for windows over six hours, 300 over three hours, otherwise 60}} lastMinutes object {type string integer minimum number 1 maximum number 1440 default number 10} period object {type string string enum array {0 string previous-hour}} from object {type string integer minimum number 0 description string {Inclusive Unix epoch seconds}} to object {type string integer minimum number 1 description string {Exclusive Unix epoch seconds}} limit object {type string integer minimum number 1 maximum number 100 default number 100} cursor object {type string integer minimum number 0 description string {Paging timestamp in microseconds; requires explicit from/to}}} additionalProperties boolean false}} set :name server_history set :outputSchema {} set :permission diagnostics.runtime.read}XQL Not present: Generic, PostgreSQL, Oracle
![[i]](/resources/acs-subsite/ZoomIn16.gif)