Class: OPNsenseAPI::Core::TrafficShaping::Service

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

Overview

Constant Summary collapse

BASE_PATH =
'/trafficshaper/service'

Instance Method Summary collapse

Methods included from OPNsenseAPI::Core

#initialize

Instance Method Details

#flush_reload(body = {}) ⇒ Object



27
28
29
# File 'lib/opnsense_api/core/traffic_shaping/service.rb', line 27

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

#reconfigure(body = {}) ⇒ Object



31
32
33
# File 'lib/opnsense_api/core/traffic_shaping/service.rb', line 31

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

#statistics(params = {}) ⇒ Object



35
36
37
# File 'lib/opnsense_api/core/traffic_shaping/service.rb', line 35

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