lib/fastly/api/events_api.rb in fastly-4.1.0 vs lib/fastly/api/events_api.rb in fastly-4.2.0

- old
+ new

@@ -85,10 +85,11 @@ # @option opts [String] :filter_customer_id Limit the results returned to a specific customer. # @option opts [String] :filter_event_type Limit the returned events to a specific &#x60;event_type&#x60;. # @option opts [String] :filter_service_id Limit the results returned to a specific service. # @option opts [String] :filter_user_id Limit the results returned to a specific user. # @option opts [String] :filter_token_id Limit the returned events to a specific token. + # @option opts [String] :filter_created_at Limit the returned events to a specific time frame. Accepts sub-parameters: lt, lte, gt, gte (e.g., filter[created_at][gt]&#x3D;2022-01-12). # @option opts [Integer] :page_number Current page. # @option opts [Integer] :page_size Number of records per page. (default to 20) # @option opts [String] :sort The order in which to list the results by creation date. (default to 'created_at') # @return [EventsResponse] def list_events(opts = {}) @@ -101,10 +102,11 @@ # @option opts [String] :filter_customer_id Limit the results returned to a specific customer. # @option opts [String] :filter_event_type Limit the returned events to a specific &#x60;event_type&#x60;. # @option opts [String] :filter_service_id Limit the results returned to a specific service. # @option opts [String] :filter_user_id Limit the results returned to a specific user. # @option opts [String] :filter_token_id Limit the returned events to a specific token. + # @option opts [String] :filter_created_at Limit the returned events to a specific time frame. Accepts sub-parameters: lt, lte, gt, gte (e.g., filter[created_at][gt]&#x3D;2022-01-12). # @option opts [Integer] :page_number Current page. # @option opts [Integer] :page_size Number of records per page. (default to 20) # @option opts [String] :sort The order in which to list the results by creation date. (default to 'created_at') # @return [Array<(EventsResponse, Integer, Hash)>] EventsResponse data, response status code and response headers def list_events_with_http_info(opts = {}) @@ -132,9 +134,10 @@ query_params[:'filter[customer_id]'] = opts[:'filter_customer_id'] if !opts[:'filter_customer_id'].nil? query_params[:'filter[event_type]'] = opts[:'filter_event_type'] if !opts[:'filter_event_type'].nil? query_params[:'filter[service_id]'] = opts[:'filter_service_id'] if !opts[:'filter_service_id'].nil? query_params[:'filter[user_id]'] = opts[:'filter_user_id'] if !opts[:'filter_user_id'].nil? query_params[:'filter[token_id]'] = opts[:'filter_token_id'] if !opts[:'filter_token_id'].nil? + query_params[:'filter[created_at]'] = opts[:'filter_created_at'] if !opts[:'filter_created_at'].nil? query_params[:'page[number]'] = opts[:'page_number'] if !opts[:'page_number'].nil? query_params[:'page[size]'] = opts[:'page_size'] if !opts[:'page_size'].nil? query_params[:'sort'] = opts[:'sort'] if !opts[:'sort'].nil? # header parameters