Class: OPNsenseAPI::Core::Diagnostics::Netflow
- Inherits:
-
Object
- Object
- OPNsenseAPI::Core::Diagnostics::Netflow
- Includes:
- OPNsenseAPI::Core
- Defined in:
- lib/opnsense_api/core/diagnostics/netflow.rb
Constant Summary collapse
- BASE_PATH =
'/diagnostics/netflow'
Instance Method Summary collapse
- #cache_stats(params = {}) ⇒ Object
- #get_config(params = {}) ⇒ Object
- #is_enabled(params = {}) ⇒ Object
- #reconfigure(body = {}) ⇒ Object
- #set_config(params = {}) ⇒ Object
- #status(params = {}) ⇒ Object
Methods included from OPNsenseAPI::Core
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 |