Method: Eye::Group::Data#status_data_short

Defined in:
lib/eye/group/data.rb

#status_data_shortObject



26
27
28
29
30
31
32
33
34
# File 'lib/eye/group/data.rb', line 26

def status_data_short
  h = {}
  @processes.each do |p|
    state = p.state
    h[state] ||= 0
    h[state] += 1
  end
  { name: (@name == '__default__' ? 'default' : @name), type: :group, states: h }
end