lib/datadog_api_client/v2/api/rum_api.rb
# Search RUM events
# List endpoint returns RUM events that match a RUM search query.
# [Results are paginated][1].
#
# Use this endpoint to build complex RUM events filtering and search.
#
# [1]: https://docs.datadoghq.com/logs/guide/collect-multiple-logs-with-pagination
# @param opts [Hash] the optional parameters
# @option opts [RUMSearchEventsRequest] :body 
# @return [Array<(RUMEventsResponse, Integer, Hash)>] RUMEventsResponse data, response status code and response headers
Search RUM events
List endpoint returns RUM events that match a RUM search query.
[Results are paginated][1].

Use this endpoint to build complex RUM events filtering and search.


Search RUM events List endpoint returns RUM events that match a RUM search query . [ Results are paginated ] [ 1 ] . Use this endpoint to build complex RUM events filtering and search .
def search_rum_events_with_http_info(opts = {})
      if @api_client.config.unstable_operations.has_key?(:search_rum_events)
        unstable_enabled = @api_client.config.unstable_operations[:search_rum_events]
        if unstable_enabled
          @api_client.config.logger.warn format("Using unstable operation '%s'", "search_rum_events")
        else
          raise APIError.new(message: format("Unstable operation '%s' is disabled", "search_rum_events"))
        end
      end
      if @api_client.config.debugging
        @api_client.config.logger.debug 'Calling API: RUMAPI.search_rum_events ...'
      end
      local_var_path = '/api/v2/rum/events/search'
      query_params = opts[:query_params] || {}
      header_params = opts[:header_params] || {}
      header_params['Accept'] = @api_client.select_header_accept(['application/json'])
      header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
      form_params = opts[:form_params] || {}
      post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:'body'])
      return_type = opts[:debug_return_type] || 'RUMEventsResponse'
      auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ]
      new_options = opts.merge(
        :operation => :search_rum_events,
        :header_params => header_params,
        :query_params => query_params,
        :form_params => form_params,
        :body => post_body,
        :auth_names => auth_names,
        :return_type => return_type
      )
      data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
      if @api_client.config.debugging
        @api_client.config.logger.debug "API called: RUMAPI#search_rum_events\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
      end
      return data, status_code, headers
    end
def search_rum_events_with_http_info ( opts = { } ) if @api_client . config . unstable_operations . has_key? ( :search_rum_events ) unstable_enabled = @api_client . config . unstable_operations [ :search_rum_events ] if unstable_enabled @api_client . config . logger . warn format ( "Using unstable operation '%s'" , "search_rum_events" ) else raise APIError . new ( message : format ( "Unstable operation '%s' is disabled" , "search_rum_events" ) ) end end if @api_client . config . debugging @api_client . config . logger . debug 'Calling API: RUMAPI.search_rum_events ...' end local_var_path = '/api/v2/rum/events/search' query_params = opts [ :query_params ] || { } header_params = opts [ :header_params ] || { } header_params [ 'Accept' ] = @api_client . select_header_accept ( [ 'application/json' ] ) header_params [ 'Content-Type' ] = @api_client . select_header_content_type ( [ 'application/json' ] ) form_params = opts [ :form_params ] || { } post_body = opts [ :debug_body ] || @api_client . object_to_http_body ( opts [ :' body ' ] ) return_type = opts [ :debug_return_type ] || 'RUMEventsResponse' auth_names = opts [ :debug_auth_names ] || [ :apiKeyAuth , :appKeyAuth , :AuthZ ] new_options = opts . merge ( :operation => :search_rum_events , :header_params => header_params , :query_params => query_params , :form_params => form_params , :body => post_body , :auth_names => auth_names , :return_type => return_type ) data , status_code , headers = @api_client . call_api ( :POST , local_var_path , new_options ) if @api_client . config . debugging @api_client . config . logger . debug "API called: RUMAPI#search_rum_events\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data , status_code , headers end
Search RUM events
List endpoint returns RUM events that match a RUM search query.
Search RUM events List endpoint returns RUM events that match a RUM search query .
# resource path # query parameters # header parameters # HTTP header 'Accept' (if needed) # HTTP header 'Content-Type' # form parameters # http body (model) # return_type # auth_names
RUMEventsResponse data, response status code and response headers
RUMEventsResponse data response status code and response headers
Array<(RUMEventsResponse, Integer, Hash)>
opts
None