Sha256: 5d271caffcb6ea8ea0115d7f2995cbe646c9cdcdd8a9fe59fc7c00b4072f11f1
Contents?: true
Size: 1.04 KB
Versions: 2
Compression:
Stored size: 1.04 KB
Contents
# Aggregate tests events returns "OK" response require "datadog_api_client" api_instance = DatadogAPIClient::V2::CIVisibilityTestsAPI.new body = DatadogAPIClient::V2::CIAppTestsAggregateRequest.new({ compute: [ DatadogAPIClient::V2::CIAppCompute.new({ aggregation: DatadogAPIClient::V2::CIAppAggregationFunction::COUNT, metric: "@test.is_flaky", type: DatadogAPIClient::V2::CIAppComputeType::TOTAL, }), ], filter: DatadogAPIClient::V2::CIAppTestsQueryFilter.new({ from: "now-15m", query: "@language:(python OR go)", to: "now", }), group_by: [ DatadogAPIClient::V2::CIAppTestsGroupBy.new({ facet: "@git.branch", limit: 10, sort: DatadogAPIClient::V2::CIAppAggregateSort.new({ order: DatadogAPIClient::V2::CIAppSortOrder::ASCENDING, }), total: false, }), ], options: DatadogAPIClient::V2::CIAppQueryOptions.new({ timezone: "GMT", }), page: DatadogAPIClient::V2::CIAppQueryPageOptions.new({ limit: 25, }), }) p api_instance.aggregate_ci_app_test_events(body)
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
datadog_api_client-2.5.0 | examples/v2/ci-visibility-tests/AggregateCIAppTestEvents.rb |
datadog_api_client-2.4.0 | examples/v2/ci-visibility-tests/AggregateCIAppTestEvents.rb |