Class: HealthMode::ProcessMetric
- Defined in:
- lib/metrics/process_metric.rb
Class Attribute Summary collapse
-
.proc_run ⇒ Object
Returns the value of attribute proc_run.
-
.proc_total ⇒ Object
Returns the value of attribute proc_total.
-
.system_metrics ⇒ Object
Returns the value of attribute system_metrics.
Class Method Summary collapse
Class Attribute Details
.proc_run ⇒ Object
Returns the value of attribute proc_run.
4 5 6 |
# File 'lib/metrics/process_metric.rb', line 4 def proc_run @proc_run end |
.proc_total ⇒ Object
Returns the value of attribute proc_total.
4 5 6 |
# File 'lib/metrics/process_metric.rb', line 4 def proc_total @proc_total end |
.system_metrics ⇒ Object
Returns the value of attribute system_metrics.
4 5 6 |
# File 'lib/metrics/process_metric.rb', line 4 def system_metrics @system_metrics end |
Class Method Details
.current_state ⇒ Object
8 9 10 11 12 13 14 |
# File 'lib/metrics/process_metric.rb', line 8 def current_state refresh_state { "proc_total" => @proc_total, "proc_run" => @proc_run } end |