Module: Nis::Endpoint::Debug::Connections

Included in:
Nis
Defined in:
lib/nis/endpoint/debug/connections.rb

Instance Method Summary collapse

Instance Method Details

#debug_connections_incomingNis::Struct::AuditCollection


5
6
7
8
9
10
11
12
# File 'lib/nis/endpoint/debug/connections.rb', line 5

def debug_connections_incoming
  request!(:get, '/debug/connections/incoming') do |res|
    Nis::Struct::AuditCollection.build(
      outstanding: res[:outstanding],
      most_recent: res[:'most-recent']
    )
  end
end

#debug_connections_outgoingNis::Struct::AuditCollection


16
17
18
19
20
21
22
23
# File 'lib/nis/endpoint/debug/connections.rb', line 16

def debug_connections_outgoing
  request!(:get, '/debug/connections/outgoing') do |res|
    Nis::Struct::AuditCollection.build(
      outstanding: res[:outstanding],
      most_recent: res[:'most-recent']
    )
  end
end

#debug_connections_timersArray <Nis::Struct::NemAsyncTimerVisitor>


27
28
29
30
31
# File 'lib/nis/endpoint/debug/connections.rb', line 27

def debug_connections_timers
  request!(:get, '/debug/timers') do |res|
    res[:data].map { |natv| Nis::Struct::NemAsyncTimerVisitor.build(natv) }
  end
end