Sha256: c68252e9e00c584cae3c6562abad246c12475d6685a8a69d5881979b96cd33f5

Contents?: true

Size: 416 Bytes

Versions: 8

Compression:

Stored size: 416 Bytes

Contents

# Get a quick list of events returns "OK" response

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_query: "datadog-agent",
  filter_from: "2020-09-17T11:48:36+01:00",
  filter_to: "2020-09-17T12:48:36+01:00",
  page_limit: 5,
}
p api_instance.list_events(opts)

Version data entries

8 entries across 8 versions & 1 rubygems

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