Class: HealthMode::UserMetric

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

Class Attribute Summary collapse

Class Method Summary collapse

Class Attribute Details

.system_metricsObject

Returns the value of attribute system_metrics.



4
5
6
# File 'lib/metrics/user_metric.rb', line 4

def system_metrics
  @system_metrics
end

.users_numObject

Returns the value of attribute users_num.



4
5
6
# File 'lib/metrics/user_metric.rb', line 4

def users_num
  @users_num
end

Class Method Details

.current_stateObject



7
8
9
10
# File 'lib/metrics/user_metric.rb', line 7

def current_state
  refresh_state
  { "users_num" => @users_num }
end