Module: YetisNode::Cmd::Show

Included in:
YetisNode::Client
Defined in:
lib/yetis_node/cmd/show.rb

Instance Method Summary collapse

Instance Method Details

#calls(*args) ⇒ Object



48
49
50
# File 'lib/yetis_node/cmd/show.rb', line 48

def calls(*args)
  invoke_show(args)
end

#calls_countObject



44
45
46
# File 'lib/yetis_node/cmd/show.rb', line 44

def calls_count
  calls('count')
end

#calls_filtered(only = []) ⇒ Object



40
41
42
# File 'lib/yetis_node/cmd/show.rb', line 40

def calls_filtered(only = [])
  calls('filtered', *only)
end

#configurationObject



65
66
67
# File 'lib/yetis_node/cmd/show.rb', line 65

def configuration
  invoke_show
end

#interfacesObject



69
70
71
# File 'lib/yetis_node/cmd/show.rb', line 69

def interfaces
  invoke_show
end

#invoke_show(args = []) ⇒ Object



81
82
83
# File 'lib/yetis_node/cmd/show.rb', line 81

def invoke_show(args = [])
  invoke(caller_locations(1, 1)[0].label, 'show', args)
end

#media_streamsObject



52
53
54
# File 'lib/yetis_node/cmd/show.rb', line 52

def media_streams
  invoke_show
end

#registrations(*args) ⇒ Object



36
37
38
# File 'lib/yetis_node/cmd/show.rb', line 36

def registrations(*args)
  invoke_show(args)
end

#registrations_countObject

show calls show calls <LOCAL-TAG> show calls count show calls filtered <field1> <field2> … show configuration show interfaces show media streams show registrations show registrations <id> show registrations count show resource state <type>/all <id>/all show resource state used show resource state used handler <handler_id> show resource state used owner_tag <onwer_local_tag> show resource state used resource_id <resource_id> show resource types show router cache show router cdrwriter show router cdrwriter opened-files show sensors show stats show system alarms show system log-level show system session-limit show system status show version



32
33
34
# File 'lib/yetis_node/cmd/show.rb', line 32

def registrations_count
  registrations('count')
end

#resource_state(type_id, id = nil) ⇒ Object



77
78
79
# File 'lib/yetis_node/cmd/show.rb', line 77

def resource_state(type_id, id = nil)
  invoke_show([type_id, id || :all])
end

#statsObject



61
62
63
# File 'lib/yetis_node/cmd/show.rb', line 61

def stats
  invoke_show
end

#system_statusObject



57
58
59
# File 'lib/yetis_node/cmd/show.rb', line 57

def system_status
  invoke_show
end

#versionObject



73
74
75
# File 'lib/yetis_node/cmd/show.rb', line 73

def version
  invoke_show
end