Sha256: 3a14cbd363c180e7b05cbd8fb06e78f564bc7fccdc18eb801b357bc8d39cd40a

Contents?: true

Size: 539 Bytes

Versions: 12

Compression:

Stored size: 539 Bytes

Contents

# Search events returns "OK" response

require "datadog_api_client"
api_instance = DatadogAPIClient::V2::EventsAPI.new

body = DatadogAPIClient::V2::EventsListRequest.new({
  filter: DatadogAPIClient::V2::EventsQueryFilter.new({
    query: "datadog-agent",
    from: "2020-09-17T11:48:36+01:00",
    to: "2020-09-17T12:48:36+01:00",
  }),
  sort: DatadogAPIClient::V2::EventsSort::TIMESTAMP_ASCENDING,
  page: DatadogAPIClient::V2::EventsRequestPage.new({
    limit: 5,
  }),
})
opts = {
  body: body,
}
p api_instance.search_events(opts)

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
datadog_api_client-2.29.1 examples/v2/events/SearchEvents.rb
datadog_api_client-2.28.1 examples/v2/events/SearchEvents.rb
datadog_api_client-2.27.1 examples/v2/events/SearchEvents.rb
datadog_api_client-2.26.1 examples/v2/events/SearchEvents.rb
datadog_api_client-2.26.0 examples/v2/events/SearchEvents.rb
datadog_api_client-2.25.0 examples/v2/events/SearchEvents.rb
datadog_api_client-2.24.0 examples/v2/events/SearchEvents.rb
datadog_api_client-2.22.0 examples/v2/events/SearchEvents.rb
datadog_api_client-2.21.0 examples/v2/events/SearchEvents.rb
datadog_api_client-2.20.0 examples/v2/events/SearchEvents.rb
datadog_api_client-2.19.0 examples/v2/events/SearchEvents.rb
datadog_api_client-2.18.0 examples/v2/events/SearchEvents.rb