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.28.1 examples/v2/ci-visibility-tests/SearchCIAppTestEvents_1675695429.rb
datadog_api_client-2.27.1 examples/v2/ci-visibility-tests/SearchCIAppTestEvents_1675695429.rb
datadog_api_client-2.26.1 examples/v2/ci-visibility-tests/SearchCIAppTestEvents_1675695429.rb
datadog_api_client-2.26.0 examples/v2/ci-visibility-tests/SearchCIAppTestEvents_1675695429.rb
datadog_api_client-2.25.0 examples/v2/ci-visibility-tests/SearchCIAppTestEvents_1675695429.rb
datadog_api_client-2.24.0 examples/v2/ci-visibility-tests/SearchCIAppTestEvents_1675695429.rb
datadog_api_client-2.22.0 examples/v2/ci-visibility-tests/SearchCIAppTestEvents_1675695429.rb
datadog_api_client-2.21.0 examples/v2/ci-visibility-tests/SearchCIAppTestEvents_1675695429.rb
datadog_api_client-2.20.0 examples/v2/ci-visibility-tests/SearchCIAppTestEvents_1675695429.rb
datadog_api_client-2.19.0 examples/v2/ci-visibility-tests/SearchCIAppTestEvents_1675695429.rb
datadog_api_client-2.18.0 examples/v2/ci-visibility-tests/SearchCIAppTestEvents_1675695429.rb
datadog_api_client-2.17.0 examples/v2/ci-visibility-tests/SearchCIAppTestEvents_1675695429.rb
datadog_api_client-2.16.0 examples/v2/ci-visibility-tests/SearchCIAppTestEvents_1675695429.rb
datadog_api_client-2.15.0 examples/v2/ci-visibility-tests/SearchCIAppTestEvents_1675695429.rb
datadog_api_client-2.14.0 examples/v2/ci-visibility-tests/SearchCIAppTestEvents_1675695429.rb
datadog_api_client-2.13.0 examples/v2/ci-visibility-tests/SearchCIAppTestEvents_1675695429.rb
datadog_api_client-2.12.0 examples/v2/ci-visibility-tests/SearchCIAppTestEvents_1675695429.rb
datadog_api_client-2.11.0 examples/v2/ci-visibility-tests/SearchCIAppTestEvents_1675695429.rb
datadog_api_client-2.10.0 examples/v2/ci-visibility-tests/SearchCIAppTestEvents_1675695429.rb
datadog_api_client-2.9.0 examples/v2/ci-visibility-tests/SearchCIAppTestEvents_1675695429.rb