Sha256: 273cbc66369eac5039aa49a7c56abface6efcd6d1eb5bcf4db5ba17e5eb95432

Contents?: true

Size: 660 Bytes

Versions: 25

Compression:

Stored size: 660 Bytes

Contents

# Search tests events returns "OK" response

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

body = DatadogAPIClient::V2::CIAppTestEventsRequest.new({
  filter: DatadogAPIClient::V2::CIAppTestsQueryFilter.new({
    from: "now-15m",
    query: "@test.service:web-ui-tests AND @test.status:skip",
    to: "now",
  }),
  options: DatadogAPIClient::V2::CIAppQueryOptions.new({
    timezone: "GMT",
  }),
  page: DatadogAPIClient::V2::CIAppQueryPageOptions.new({
    limit: 25,
  }),
  sort: DatadogAPIClient::V2::CIAppSort::TIMESTAMP_ASCENDING,
})
opts = {
  body: body,
}
p api_instance.search_ci_app_test_events(opts)

Version data entries

25 entries across 25 versions & 1 rubygems

Version Path
datadog_api_client-2.8.0 examples/v2/ci-visibility-tests/SearchCIAppTestEvents.rb
datadog_api_client-2.7.0 examples/v2/ci-visibility-tests/SearchCIAppTestEvents.rb
datadog_api_client-2.6.0 examples/v2/ci-visibility-tests/SearchCIAppTestEvents.rb
datadog_api_client-2.5.0 examples/v2/ci-visibility-tests/SearchCIAppTestEvents.rb
datadog_api_client-2.4.0 examples/v2/ci-visibility-tests/SearchCIAppTestEvents.rb