Sha256: 61c2f5181d3747f67921faf9863cbd402cc41816b5840e4608f3add4d4443c4b

Contents?: true

Size: 676 Bytes

Versions: 27

Compression:

Stored size: 676 Bytes

Contents

# Search pipelines events returns "OK" response

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

body = DatadogAPIClient::V2::CIAppPipelineEventsRequest.new({
  filter: DatadogAPIClient::V2::CIAppPipelinesQueryFilter.new({
    from: "now-15m",
    query: "@ci.provider.name:github AND @ci.status:error",
    to: "now",
  }),
  options: DatadogAPIClient::V2::CIAppQueryOptions.new({
    timezone: "GMT",
  }),
  page: DatadogAPIClient::V2::CIAppQueryPageOptions.new({
    limit: 5,
  }),
  sort: DatadogAPIClient::V2::CIAppSort::TIMESTAMP_ASCENDING,
})
opts = {
  body: body,
}
p api_instance.search_ci_app_pipeline_events(opts)

Version data entries

27 entries across 27 versions & 1 rubygems

Version Path
datadog_api_client-2.30.0 examples/v2/ci-visibility-pipelines/SearchCIAppPipelineEvents.rb
datadog_api_client-2.29.1 examples/v2/ci-visibility-pipelines/SearchCIAppPipelineEvents.rb
datadog_api_client-2.28.1 examples/v2/ci-visibility-pipelines/SearchCIAppPipelineEvents.rb
datadog_api_client-2.27.1 examples/v2/ci-visibility-pipelines/SearchCIAppPipelineEvents.rb
datadog_api_client-2.26.1 examples/v2/ci-visibility-pipelines/SearchCIAppPipelineEvents.rb
datadog_api_client-2.26.0 examples/v2/ci-visibility-pipelines/SearchCIAppPipelineEvents.rb
datadog_api_client-2.25.0 examples/v2/ci-visibility-pipelines/SearchCIAppPipelineEvents.rb
datadog_api_client-2.24.0 examples/v2/ci-visibility-pipelines/SearchCIAppPipelineEvents.rb
datadog_api_client-2.22.0 examples/v2/ci-visibility-pipelines/SearchCIAppPipelineEvents.rb
datadog_api_client-2.21.0 examples/v2/ci-visibility-pipelines/SearchCIAppPipelineEvents.rb
datadog_api_client-2.20.0 examples/v2/ci-visibility-pipelines/SearchCIAppPipelineEvents.rb
datadog_api_client-2.19.0 examples/v2/ci-visibility-pipelines/SearchCIAppPipelineEvents.rb
datadog_api_client-2.18.0 examples/v2/ci-visibility-pipelines/SearchCIAppPipelineEvents.rb
datadog_api_client-2.17.0 examples/v2/ci-visibility-pipelines/SearchCIAppPipelineEvents.rb
datadog_api_client-2.16.0 examples/v2/ci-visibility-pipelines/SearchCIAppPipelineEvents.rb
datadog_api_client-2.15.0 examples/v2/ci-visibility-pipelines/SearchCIAppPipelineEvents.rb
datadog_api_client-2.14.0 examples/v2/ci-visibility-pipelines/SearchCIAppPipelineEvents.rb
datadog_api_client-2.13.0 examples/v2/ci-visibility-pipelines/SearchCIAppPipelineEvents.rb
datadog_api_client-2.12.0 examples/v2/ci-visibility-pipelines/SearchCIAppPipelineEvents.rb
datadog_api_client-2.11.0 examples/v2/ci-visibility-pipelines/SearchCIAppPipelineEvents.rb