Module: Wazuh::Api::Endpoints::Syscollector
- Included in:
- Wazuh::Api::Endpoints, V4::Syscollector
- Defined in:
- lib/wazuh/api/endpoints/syscollector.rb
Instance Method Summary collapse
-
#hardware(agent_id, options = {}) ⇒ Object
Returns the agent’s hardware info.
-
#netaddr(agent_id, options = {}) ⇒ Object
Returns the agent’s network address info.
-
#netiface(agent_id, options = {}) ⇒ Object
Returns the agent’s network interface info.
-
#netproto(agent_id, options = {}) ⇒ Object
Returns the agent’s network protocol info.
-
#os(agent_id, options = {}) ⇒ Object
Returns the agent’s OS info.
-
#packages(agent_id, options = {}) ⇒ Object
Returns the agent’s packages info.
-
#ports(agent_id, options = {}) ⇒ Object
Get ports info of an agent Returns the agent’s ports info.
-
#processes(agent_id, options = {}) ⇒ Object
Get processes info Returns the agent’s processes info.
Instance Method Details
#hardware(agent_id, options = {}) ⇒ Object
Returns the agent’s hardware info.
12 13 14 |
# File 'lib/wazuh/api/endpoints/syscollector.rb', line 12 def hardware(agent_id, = {}) get "/syscollector/#{agent_id}/hardware", end |
#netaddr(agent_id, options = {}) ⇒ Object
Returns the agent’s network address info.
40 41 42 |
# File 'lib/wazuh/api/endpoints/syscollector.rb', line 40 def netaddr(agent_id, = {}) offset_request('get', "/syscollector/#{agent_id}/netaddr", ) end |
#netiface(agent_id, options = {}) ⇒ Object
Returns the agent’s network interface info
76 77 78 |
# File 'lib/wazuh/api/endpoints/syscollector.rb', line 76 def netiface(agent_id, = {}) offset_request('get', "/syscollector/#{agent_id}/netiface", ) end |
#netproto(agent_id, options = {}) ⇒ Object
Returns the agent’s network protocol info.
102 103 104 |
# File 'lib/wazuh/api/endpoints/syscollector.rb', line 102 def netproto(agent_id, = {}) offset_request('get', "/syscollector/#{agent_id}/netproto", ) end |
#os(agent_id, options = {}) ⇒ Object
Returns the agent’s OS info.
112 113 114 |
# File 'lib/wazuh/api/endpoints/syscollector.rb', line 112 def os(agent_id, = {}) get "/syscollector/#{agent_id}/os", end |
#packages(agent_id, options = {}) ⇒ Object
Returns the agent’s packages info.
140 141 142 |
# File 'lib/wazuh/api/endpoints/syscollector.rb', line 140 def packages(agent_id, = {}) offset_request('get', "/syscollector/#{agent_id}/packages", ) end |
#ports(agent_id, options = {}) ⇒ Object
Get ports info of an agent Returns the agent’s ports info.
173 174 175 |
# File 'lib/wazuh/api/endpoints/syscollector.rb', line 173 def ports(agent_id, = {}) offset_request('get', "/syscollector/#{agent_id}/ports", ) end |
#processes(agent_id, options = {}) ⇒ Object
Get processes info Returns the agent’s processes info.
221 222 223 |
# File 'lib/wazuh/api/endpoints/syscollector.rb', line 221 def processes(agent_id, = {}) offset_request('get', "/syscollector/#{agent_id}/processes", ) end |