Module: Wazuh::Api::Endpoints::Ciscat

Included in:
Wazuh::Api::Endpoints, V4::Ciscat
Defined in:
lib/wazuh/api/endpoints/ciscat.rb

Instance Method Summary collapse

Instance Method Details

#ciscat_result(agent_id, options = {}) ⇒ Object

Returns the agent’s ciscat results info

Parameters:

  • agent_id (String)

    ID to agent

  • options (Hash) (defaults to: {})

    a customizable set of options

Options Hash (options):

  • :offset (offset)

    First element to return in the collection.

  • :limit (limit)

    Maximum number of elements to return.

  • :sort (sort)

    Sorts the collection by a field or fields (separated by comma). Use +/- at the beginning to list in ascending or descending order.

  • :search (search)

    Looks for elements with the specified string.

  • :select (select)

    List of selected fields separated by commas.

  • :benchmark (benchmark)

    Filters by benchmark.

  • :profile (profile)

    Filters by evaluated profile.

  • :pass (pass)

    Filters by passed checks.

  • :fail (fail)

    Filters by failed checks.

  • :error (error)

    Filters by encountered errors.

  • :notchecked (notchecked)

    Filters by not checked.

  • :unknown (unknown)

    Filters by unknown results.

  • :score (score)

    Filters by final score.

See Also:



37
38
39
# File 'lib/wazuh/api/endpoints/ciscat.rb', line 37

def ciscat_result(agent_id, options = {})
  offset_request("get", "/ciscat/#{agent_id}/results", options)
end