Sha256: cde2e283f61439225d9963e5a25a09f581c27bd51d44434e88815ea95f68b72d

Contents?: true

Size: 667 Bytes

Versions: 25

Compression:

Stored size: 667 Bytes

Contents

# Search pipelines events returns "OK" response with pagination

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

body = DatadogAPIClient::V2::CIAppPipelineEventsRequest.new({
  filter: DatadogAPIClient::V2::CIAppPipelinesQueryFilter.new({
    from: "now-30s",
    to: "now",
  }),
  options: DatadogAPIClient::V2::CIAppQueryOptions.new({
    timezone: "GMT",
  }),
  page: DatadogAPIClient::V2::CIAppQueryPageOptions.new({
    limit: 2,
  }),
  sort: DatadogAPIClient::V2::CIAppSort::TIMESTAMP_ASCENDING,
})
opts = {
  body: body,
}
api_instance.search_ci_app_pipeline_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-pipelines/SearchCIAppPipelineEvents_3246135003.rb
datadog_api_client-2.7.0 examples/v2/ci-visibility-pipelines/SearchCIAppPipelineEvents_3246135003.rb
datadog_api_client-2.6.0 examples/v2/ci-visibility-pipelines/SearchCIAppPipelineEvents_3246135003.rb
datadog_api_client-2.5.0 examples/v2/ci-visibility-pipelines/SearchCIAppPipelineEvents_3246135003.rb
datadog_api_client-2.4.0 examples/v2/ci-visibility-pipelines/SearchCIAppPipelineEvents_3246135003.rb