Sha256: c458563830c93eb74165fc7324ab9083e88a80273a830e8e4e3f0f55c3ae93e1

Contents?: true

Size: 896 Bytes

Versions: 23

Compression:

Stored size: 896 Bytes

Contents

# Aggregate pipelines events returns "OK" response

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

body = DatadogAPIClient::V2::CIAppPipelinesAggregateRequest.new({
  compute: [
    DatadogAPIClient::V2::CIAppCompute.new({
      aggregation: DatadogAPIClient::V2::CIAppAggregationFunction::PERCENTILE_90,
      metric: "@duration",
      type: DatadogAPIClient::V2::CIAppComputeType::TOTAL,
    }),
  ],
  filter: DatadogAPIClient::V2::CIAppPipelinesQueryFilter.new({
    from: "now-15m",
    query: "@ci.provider.name:(gitlab OR github)",
    to: "now",
  }),
  group_by: [
    DatadogAPIClient::V2::CIAppPipelinesGroupBy.new({
      facet: "@ci.status",
      limit: 10,
      total: false,
    }),
  ],
  options: DatadogAPIClient::V2::CIAppQueryOptions.new({
    timezone: "GMT",
  }),
})
p api_instance.aggregate_ci_app_pipeline_events(body)

Version data entries

23 entries across 23 versions & 1 rubygems

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