ns::stats::SQLiteHistory method history query (public)

 <instance of ns::stats::SQLiteHistory[i]> history query -from from  \
    -to to  [ -server server ] [ -limit limit ] [ -cursor cursor ]

Defined in

Return stored samples, associated topology, paging information and coverage for an epoch interval. Queries run in the configuring virtual server and use an operation-local database handle. Historical server selection may include servers no longer active.

Switches:
-from (required, integer)
Inclusive lower bound in epoch seconds; must be nonnegative.
-to (required, integer)
Exclusive upper bound in epoch seconds; after from, at most 24 hours later and no later than now.
-server (optional)
Optional historical virtual-server name, including one no longer configured; empty returns all stored server data.
-limit (optional, integer, defaults to "1000")
Maximum records per page, 1..1000; default 1000.
-cursor (optional, integer, defaults to "0")
Nonnegative timestamp cursor in microseconds, default 0; pass nextCursor unchanged for continuation.
Returns:
Dictionary containing records, referenced topologies, storage statistics, coverage, more and nextCursor. Final-page coverage examines the full requested window.

Testcases:
No testcase defined.
[ show source ]
Show another procedure: