Class: OPNsenseAPI::Core::Diagnostics::NetworkInsight

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

Constant Summary collapse

BASE_PATH =
'/diagnostics/networkinsight'

Instance Method Summary collapse

Methods included from OPNsenseAPI::Core

#initialize

Instance Method Details

#get_interfaces(params = {}) ⇒ Object



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

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

#get_metadata(params = {}) ⇒ Object



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

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

#get_protocols(params = {}) ⇒ Object



34
35
36
# File 'lib/opnsense_api/core/diagnostics/network_insight.rb', line 34

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

#get_services(params = {}) ⇒ Object



38
39
40
# File 'lib/opnsense_api/core/diagnostics/network_insight.rb', line 38

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