::ns::ns_stats ::ns::ns_stats history persist ::ns::stats::Sampler ::ns::stats::Sampler calculate delta init locked sample sampling start sampling status sampling stop sampling tick ::ns::ns_stats->::ns::stats::Sampler ::ns::stats::Collector ::ns::stats::Collector describe selectServer snapshot ::ns::stats::Sampler->::ns::stats::Collector

Class ::ns::ns_stats

::ns::ns_stats[i] create ...

Defined in

Class Relations

  • class: ::nx::Class[i]
  • superclass: ::ns::stats::Sampler[i]
::nx::Class create ::ns::ns_stats \
     -superclass ::ns::stats::Sampler

Methods (to be applied on instances)

  • history persist (scripted, public)

     <instance of ns::ns_stats[i]> history persist

    Scheduled persistence entry point. Restore the configured history mixins in this interpreter, then save the latest published sample. Return without database access when persistence is disabled.

    Testcases:
    No testcase defined.
    set config [nsv_get ns_stats history]
    if {$config eq "" || ![dict get $config enabled]} {
        return
    }
    :object mixins set [dict get $config mixins]
    :history save