Sha256: 2f7f4cb9fb65037fdd327cc47c3172767066034d869a598ca86c99acf037d699

Contents?: true

Size: 617 Bytes

Versions: 25

Compression:

Stored size: 617 Bytes

Contents

# Search tests events returns "OK" response with pagination

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.status:pass AND -@language:python",
    to: "now",
  }),
  page: DatadogAPIClient::V2::CIAppQueryPageOptions.new({
    limit: 2,
  }),
  sort: DatadogAPIClient::V2::CIAppSort::TIMESTAMP_ASCENDING,
})
opts = {
  body: body,
}
api_instance.search_ci_app_test_events_with_pagination(opts) { |item| puts item }

Version data entries

25 entries across 25 versions & 1 rubygems

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