Sha256: 35cde92430fb5b047f44c53317a7ab83598ce0a8eab182ca768cd5a2eef81d65

Contents?: true

Size: 388 Bytes

Versions: 8

Compression:

Stored size: 388 Bytes

Contents

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

require "datadog_api_client"
DatadogAPIClient.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

8 entries across 8 versions & 1 rubygems

Version Path
datadog_api_client-2.17.0 examples/v2/events/ListEvents_1527584014.rb
datadog_api_client-2.16.0 examples/v2/events/ListEvents_1527584014.rb
datadog_api_client-2.15.0 examples/v2/events/ListEvents_1527584014.rb
datadog_api_client-2.14.0 examples/v2/events/ListEvents_1527584014.rb
datadog_api_client-2.13.0 examples/v2/events/ListEvents_1527584014.rb
datadog_api_client-2.12.0 examples/v2/events/ListEvents_1527584014.rb
datadog_api_client-2.11.0 examples/v2/events/ListEvents_1527584014.rb
datadog_api_client-2.10.0 examples/v2/events/ListEvents_1527584014.rb