Sha256: 04e75a95535439d8a686ab568fea23a6149669eb9c9cb8a6e6030d0f01f51783
Contents?: true
Size: 645 Bytes
Versions: 8
Compression:
Stored size: 645 Bytes
Contents
# Search events returns "OK" response require "datadog_api_client" DatadogAPIClient.configure do |config| config.unstable_operations["v2.search_events".to_sym] = true end 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
8 entries across 8 versions & 1 rubygems