Class: HealthMode::ProcessMetric

Inherits:
Metric
  • Object
show all
Defined in:
lib/metrics/process_metric.rb

Class Attribute Summary collapse

Class Method Summary collapse

Class Attribute Details

.proc_runObject

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_totalObject

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_metricsObject

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_stateObject



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