ns::stats::SQLiteHistory method history storage (public)
<instance of ns::stats::SQLiteHistory> history storage
Return retained bounds/count and SQLite space usage for sizing the dedicated history database. Run in the history owner server. Does not collect samples, write history or change its configuration.
- Testcases:
- No testcase defined.
Source code: set config [nsv_get ns_stats history] if {$config eq ""} { error "history is not configured" } if {[dict get $config owner] ne [ns_info server]} { error "query history from its configured owner server" } set db [:historyConnect $config] try { :sql $db {BEGIN} try { set result [:historyStorage $db $config] } finally { :sql $db {ROLLBACK} } return $result } finally { ns_db releasehandle $db }XQL Not present: Generic, PostgreSQL, Oracle
![[i]](/resources/acs-subsite/ZoomIn16.gif)