def raw_search(entity = nil, body = nil, deleted = false)
      unless (entity.is_a?(String) || entity.is_a?(Symbol)) &&
             body.is_a?(Hash)
        raise ArgumentError
      end

      path = [entity]
      path.<< 'deleted' if deleted
      api.post(path, body, 'application/json')
    end
def raw_search(entity = nil, body = nil, deleted = false)
      unless (entity.is_a?(String) || entity.is_a?(Symbol)) &&
             body.is_a?(Hash)
        raise ArgumentError
      end

      path = [entity]
      path.<< 'deleted' if deleted
      api.post(path, body, 'application/json')
    end
POST /api/v2/search/entity
 POST /api/v2/search/entity/deleted
 Run a search query. This single method maps to many API paths.

 @param entity [String] the type of Wavefront object you wish
   to search
 @param body [Hash] the query to use for searching. Refer to
   the Wavefront Swagger docs for the correct format.
   Specifying multiple key - value pairs performs a logical AND
   on the constraints.
 @param deleted [Boolean] whether to search deleted (true) or
   active (false) entities