Sha256: 255d7b0d34ca3bae656dd6b8e2ef6ad8f2543b3989b001e58a8cf5566f9b3971

Contents?: true

Size: 392 Bytes

Versions: 10

Compression:

Stored size: 392 Bytes

Contents

# Get a list of events returns "OK" response with pagination

require "datadog_api_client"
DatadogAPIClient::V2.configure do |config|
  config.unstable_operations["v2.list_events".to_sym] = true
end
api_instance = DatadogAPIClient::V2::EventsAPI.new
opts = {
  filter_from: "now-15m",
  filter_to: "now",
  page_limit: 2,
}
api_instance.list_events_with_pagination(opts) { |item| puts item }

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
datadog_api_client-2.9.0 examples/v2/events/ListEvents_1527584014.rb
datadog_api_client-2.8.0 examples/v2/events/ListEvents_1527584014.rb
datadog_api_client-2.7.0 examples/v2/events/ListEvents_1527584014.rb
datadog_api_client-2.6.0 examples/v2/events/ListEvents_1527584014.rb
datadog_api_client-2.5.0 examples/v2/events/ListEvents_1527584014.rb
datadog_api_client-2.4.0 examples/v2/events/ListEvents_1527584014.rb
datadog_api_client-2.3.0 examples/v2/events/ListEvents_1527584014.rb
datadog_api_client-2.2.0 examples/v2/events/ListEvents_1527584014.rb
datadog_api_client-2.1.0 examples/v2/events/ListEvents_1527584014.rb
datadog_api_client-2.0.2 examples/v2/events/ListEvents_1527584014.rb