Class: OPNsenseAPI::Core::Diagnostics::Netflow

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

Constant Summary collapse

BASE_PATH =
'/diagnostics/netflow'

Instance Method Summary collapse

Methods included from OPNsenseAPI::Core

#initialize

Instance Method Details

#cache_stats(params = {}) ⇒ Object



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

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

#get_config(params = {}) ⇒ Object



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

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

#is_enabled(params = {}) ⇒ Object



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

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

#reconfigure(body = {}) ⇒ Object



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

def reconfigure(body = {})
  @client.post("#{BASE_PATH}/reconfigure", body)
end

#set_config(params = {}) ⇒ Object



42
43
44
# File 'lib/opnsense_api/core/diagnostics/netflow.rb', line 42

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

#status(params = {}) ⇒ Object



46
47
48
# File 'lib/opnsense_api/core/diagnostics/netflow.rb', line 46

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