ns::stats::Sampler method sample (public)
<instance of ns::stats::Sampler> sample [ -server server ]
Return the latest published sample, updating its reported age and running state. Before any publication, return a dictionary with sampling readiness false and no interval observations. An optional server argument restricts virtual-server data; CPU measurements remain process-wide. Does not collect observations or advance the baseline. The internal raw baseline is omitted from the returned dictionary.
- Switches:
- -server (optional)
- Testcases:
- No testcase defined.
![[i]](/resources/acs-subsite/ZoomIn16.gif)