# Get a list of incidents returns "OK" response with pagination require "datadog_api_client" DatadogAPIClient::V2.configure do |config| config.unstable_operations["v2.list_incidents".to_sym] = true end api_instance = DatadogAPIClient::V2::IncidentsAPI.new opts = { page_size: 2, } api_instance.list_incidents_with_pagination(opts) { |item| puts item }