Class: OPNsenseAPI::Core::Diagnostics::Traffic

Inherits:
Object
  • Object
show all
Includes:
OPNsenseAPI::Core
Defined in:
lib/opnsense_api/core/diagnostics/traffic.rb

Constant Summary collapse

BASE_PATH =
'/diagnostics/traffic'

Instance Method Summary collapse

Methods included from OPNsenseAPI::Core

#initialize

Instance Method Details

#interface(params = {}) ⇒ Object



26
27
28
# File 'lib/opnsense_api/core/diagnostics/traffic.rb', line 26

def interface(params = {})
  @client.get("#{BASE_PATH}/Interface", params)
end

#top(params = {}) ⇒ Object



30
31
32
# File 'lib/opnsense_api/core/diagnostics/traffic.rb', line 30

def top(params = {})
  @client.get("#{BASE_PATH}/Top", params)
end