Method: NewRelic::Agent::StatsEngine#harvest!
- Defined in:
- lib/new_relic/agent/stats_engine.rb
permalink #harvest! ⇒ Object
152 153 154 155 156 157 158 |
# File 'lib/new_relic/agent/stats_engine.rb', line 152 def harvest! now = Process.clock_gettime(Process::CLOCK_REALTIME) snapshot = reset! snapshot = apply_rules_to_metric_data(@metric_rules, snapshot) snapshot.harvested_at = now snapshot end |