@@ -7297,6 +7297,51 @@ components:
72977297 data:
72987298 $ref: '#/components/schemas/BillingDimensionsMappingBody'
72997299 type: object
7300+ BranchCoverageSummaryRequest:
7301+ description: Request object for getting code coverage summary for a branch.
7302+ properties:
7303+ data:
7304+ $ref: '#/components/schemas/BranchCoverageSummaryRequestData'
7305+ required:
7306+ - data
7307+ type: object
7308+ BranchCoverageSummaryRequestAttributes:
7309+ description: Attributes for requesting code coverage summary for a branch.
7310+ properties:
7311+ branch:
7312+ description: The branch name.
7313+ example: prod
7314+ minLength: 1
7315+ type: string
7316+ repository_id:
7317+ description: The repository identifier.
7318+ example: github.com/datadog/shopist
7319+ minLength: 1
7320+ type: string
7321+ required:
7322+ - repository_id
7323+ - branch
7324+ type: object
7325+ BranchCoverageSummaryRequestData:
7326+ description: Data object for branch summary request.
7327+ properties:
7328+ attributes:
7329+ $ref: '#/components/schemas/BranchCoverageSummaryRequestAttributes'
7330+ type:
7331+ $ref: '#/components/schemas/BranchCoverageSummaryRequestType'
7332+ required:
7333+ - type
7334+ - attributes
7335+ type: object
7336+ BranchCoverageSummaryRequestType:
7337+ description: JSON:API type for branch coverage summary request. The value should
7338+ always be `ci_app_coverage_branch_summary_request`.
7339+ enum:
7340+ - ci_app_coverage_branch_summary_request
7341+ example: ci_app_coverage_branch_summary_request
7342+ type: string
7343+ x-enum-varnames:
7344+ - CI_APP_COVERAGE_BRANCH_SUMMARY_REQUEST
73007345 Budget:
73017346 description: A budget.
73027347 properties:
@@ -11760,6 +11805,51 @@ components:
1176011805 required:
1176111806 - location
1176211807 type: object
11808+ CommitCoverageSummaryRequest:
11809+ description: Request object for getting code coverage summary for a commit.
11810+ properties:
11811+ data:
11812+ $ref: '#/components/schemas/CommitCoverageSummaryRequestData'
11813+ required:
11814+ - data
11815+ type: object
11816+ CommitCoverageSummaryRequestAttributes:
11817+ description: Attributes for requesting code coverage summary for a commit.
11818+ properties:
11819+ commit_sha:
11820+ description: The commit SHA (40-character hexadecimal string).
11821+ example: 66adc9350f2cc9b250b69abddab733dd55e1a588
11822+ pattern: ^[a-fA-F0-9]{40}$
11823+ type: string
11824+ repository_id:
11825+ description: The repository identifier.
11826+ example: github.com/datadog/shopist
11827+ minLength: 1
11828+ type: string
11829+ required:
11830+ - repository_id
11831+ - commit_sha
11832+ type: object
11833+ CommitCoverageSummaryRequestData:
11834+ description: Data object for commit summary request.
11835+ properties:
11836+ attributes:
11837+ $ref: '#/components/schemas/CommitCoverageSummaryRequestAttributes'
11838+ type:
11839+ $ref: '#/components/schemas/CommitCoverageSummaryRequestType'
11840+ required:
11841+ - type
11842+ - attributes
11843+ type: object
11844+ CommitCoverageSummaryRequestType:
11845+ description: JSON:API type for commit coverage summary request. The value should
11846+ always be `ci_app_coverage_commit_summary_request`.
11847+ enum:
11848+ - ci_app_coverage_commit_summary_request
11849+ example: ci_app_coverage_commit_summary_request
11850+ type: string
11851+ x-enum-varnames:
11852+ - CI_APP_COVERAGE_COMMIT_SUMMARY_REQUEST
1176311853 CompletionCondition:
1176411854 description: The definition of `CompletionCondition` object.
1176511855 properties:
@@ -13270,6 +13360,123 @@ components:
1327013360 type: string
1327113361 x-enum-varnames:
1327213362 - COST_BY_ORG
13363+ CoverageSummaryAttributes:
13364+ description: Attributes object for code coverage summary response.
13365+ properties:
13366+ codeowners:
13367+ additionalProperties:
13368+ $ref: '#/components/schemas/CoverageSummaryCodeownerStats'
13369+ description: Coverage statistics broken down by code owner.
13370+ nullable: true
13371+ type: object
13372+ evaluated_flags_count:
13373+ description: Total number of coverage flags evaluated.
13374+ example: 8
13375+ format: int64
13376+ type: integer
13377+ evaluated_reports_count:
13378+ description: Total number of coverage reports evaluated.
13379+ example: 12
13380+ format: int64
13381+ type: integer
13382+ patch_coverage:
13383+ description: Overall patch coverage percentage.
13384+ example: 70.1
13385+ format: double
13386+ nullable: true
13387+ type: number
13388+ services:
13389+ additionalProperties:
13390+ $ref: '#/components/schemas/CoverageSummaryServiceStats'
13391+ description: Coverage statistics broken down by service.
13392+ nullable: true
13393+ type: object
13394+ total_coverage:
13395+ description: Overall total coverage percentage.
13396+ example: 82.4
13397+ format: double
13398+ nullable: true
13399+ type: number
13400+ type: object
13401+ CoverageSummaryCodeownerStats:
13402+ description: Coverage statistics for a specific code owner.
13403+ properties:
13404+ evaluated_flags_count:
13405+ description: Number of coverage flags evaluated for the code owner.
13406+ example: 2
13407+ format: int64
13408+ type: integer
13409+ evaluated_reports_count:
13410+ description: Number of coverage reports evaluated for the code owner.
13411+ example: 4
13412+ format: int64
13413+ type: integer
13414+ patch_coverage:
13415+ description: Patch coverage percentage for the code owner.
13416+ example: 75.2
13417+ format: double
13418+ nullable: true
13419+ type: number
13420+ total_coverage:
13421+ description: Total coverage percentage for the code owner.
13422+ example: 88.7
13423+ format: double
13424+ nullable: true
13425+ type: number
13426+ type: object
13427+ CoverageSummaryData:
13428+ description: Data object for coverage summary response.
13429+ properties:
13430+ attributes:
13431+ $ref: '#/components/schemas/CoverageSummaryAttributes'
13432+ id:
13433+ description: Unique identifier for the coverage summary (base64-hashed).
13434+ example: ZGQxMjM0NV9tYWluXzE3MDk1NjQwMDA=
13435+ type: string
13436+ type:
13437+ $ref: '#/components/schemas/CoverageSummaryType'
13438+ type: object
13439+ CoverageSummaryResponse:
13440+ description: Response object containing code coverage summary.
13441+ properties:
13442+ data:
13443+ $ref: '#/components/schemas/CoverageSummaryData'
13444+ type: object
13445+ CoverageSummaryServiceStats:
13446+ description: Coverage statistics for a specific service.
13447+ properties:
13448+ evaluated_flags_count:
13449+ description: Number of coverage flags evaluated for the service.
13450+ example: 3
13451+ format: int64
13452+ type: integer
13453+ evaluated_reports_count:
13454+ description: Number of coverage reports evaluated for the service.
13455+ example: 5
13456+ format: int64
13457+ type: integer
13458+ patch_coverage:
13459+ description: Patch coverage percentage for the service.
13460+ example: 72.3
13461+ format: double
13462+ nullable: true
13463+ type: number
13464+ total_coverage:
13465+ description: Total coverage percentage for the service.
13466+ example: 85.5
13467+ format: double
13468+ nullable: true
13469+ type: number
13470+ type: object
13471+ CoverageSummaryType:
13472+ description: JSON:API type for coverage summary response. The value should always
13473+ be `ci_app_coverage_summary`.
13474+ enum:
13475+ - ci_app_coverage_summary
13476+ example: ci_app_coverage_summary
13477+ type: string
13478+ x-enum-varnames:
13479+ - CI_APP_COVERAGE_SUMMARY
1327313480 Cpu:
1327413481 description: CPU usage statistics derived from historical Spark job metrics.
1327513482 Provides multiple estimates so users can choose between conservative and cost-saving
@@ -40874,6 +41081,8 @@ components:
4087441081 type: integer
4087541082 type:
4087641083 $ref: '#/components/schemas/ObservabilityPipelineBufferOptionsMemoryType'
41084+ when_full:
41085+ $ref: '#/components/schemas/ObservabilityPipelineBufferOptionsWhenFull'
4087741086 type: object
4087841087 ObservabilityPipelineMemoryBufferSizeOptions:
4087941088 description: Options for configuring a memory buffer by queue length.
@@ -40885,6 +41094,8 @@ components:
4088541094 type: integer
4088641095 type:
4088741096 $ref: '#/components/schemas/ObservabilityPipelineBufferOptionsMemoryType'
41097+ when_full:
41098+ $ref: '#/components/schemas/ObservabilityPipelineBufferOptionsWhenFull'
4088841099 type: object
4088941100 ObservabilityPipelineMetadataEntry:
4089041101 description: A custom metadata entry.
@@ -67614,6 +67825,7 @@ components:
6761467825 cloud_cost_management_write: Configure cloud cost accounts and global
6761567826 customizations. For more details, see the Cloud Cost Management docs.
6761667827 code_analysis_read: View Code Analysis.
67828+ code_coverage_read: View Code Coverage.
6761767829 continuous_profiler_pgo_read: Read and query Continuous Profiler data
6761867830 for Profile-Guided Optimization (PGO).
6761967831 coterm_read: Read terminal recordings.
@@ -74215,6 +74427,119 @@ paths:
7421574427 operator: OR
7421674428 permissions:
7421774429 - security_monitoring_filters_write
74430+ /api/v2/code-coverage/branch/summary:
74431+ post:
74432+ description: 'Retrieve aggregated code coverage statistics for a specific branch
74433+ in a repository.
74434+
74435+ This endpoint provides overall coverage metrics as well as breakdowns by service
74436+
74437+ and code owner.
74438+
74439+
74440+ **Note**: This endpoint requires the `code_coverage_read` permission.'
74441+ operationId: GetCodeCoverageBranchSummary
74442+ requestBody:
74443+ content:
74444+ application/json:
74445+ schema:
74446+ $ref: '#/components/schemas/BranchCoverageSummaryRequest'
74447+ required: true
74448+ responses:
74449+ '200':
74450+ content:
74451+ application/json:
74452+ schema:
74453+ $ref: '#/components/schemas/CoverageSummaryResponse'
74454+ description: OK
74455+ '400':
74456+ $ref: '#/components/responses/BadRequestResponse'
74457+ '403':
74458+ $ref: '#/components/responses/NotAuthorizedResponse'
74459+ '404':
74460+ $ref: '#/components/responses/NotFoundResponse'
74461+ '429':
74462+ $ref: '#/components/responses/TooManyRequestsResponse'
74463+ '500':
74464+ content:
74465+ application/json:
74466+ schema:
74467+ $ref: '#/components/schemas/APIErrorResponse'
74468+ description: Internal server error
74469+ security:
74470+ - apiKeyAuth: []
74471+ appKeyAuth: []
74472+ - AuthZ:
74473+ - code_coverage_read
74474+ summary: Get code coverage summary for a branch
74475+ tags:
74476+ - Code Coverage
74477+ x-codegen-request-body-name: body
74478+ x-permission:
74479+ operator: OR
74480+ permissions:
74481+ - code_coverage_read
74482+ x-unstable: '**Note**: This endpoint is in preview and may be subject to change.
74483+
74484+ If you have any feedback, contact [Datadog support](https://docs.datadoghq.com/help/).'
74485+ /api/v2/code-coverage/commit/summary:
74486+ post:
74487+ description: 'Retrieve aggregated code coverage statistics for a specific commit
74488+ in a repository.
74489+
74490+ This endpoint provides overall coverage metrics as well as breakdowns by service
74491+
74492+ and code owner.
74493+
74494+
74495+ The commit SHA must be a 40-character hexadecimal string (SHA-1 hash).
74496+
74497+
74498+ **Note**: This endpoint requires the `code_coverage_read` permission.'
74499+ operationId: GetCodeCoverageCommitSummary
74500+ requestBody:
74501+ content:
74502+ application/json:
74503+ schema:
74504+ $ref: '#/components/schemas/CommitCoverageSummaryRequest'
74505+ required: true
74506+ responses:
74507+ '200':
74508+ content:
74509+ application/json:
74510+ schema:
74511+ $ref: '#/components/schemas/CoverageSummaryResponse'
74512+ description: OK
74513+ '400':
74514+ $ref: '#/components/responses/BadRequestResponse'
74515+ '403':
74516+ $ref: '#/components/responses/NotAuthorizedResponse'
74517+ '404':
74518+ $ref: '#/components/responses/NotFoundResponse'
74519+ '429':
74520+ $ref: '#/components/responses/TooManyRequestsResponse'
74521+ '500':
74522+ content:
74523+ application/json:
74524+ schema:
74525+ $ref: '#/components/schemas/APIErrorResponse'
74526+ description: Internal server error
74527+ security:
74528+ - apiKeyAuth: []
74529+ appKeyAuth: []
74530+ - AuthZ:
74531+ - code_coverage_read
74532+ summary: Get code coverage summary for a commit
74533+ tags:
74534+ - Code Coverage
74535+ x-codegen-request-body-name: body
74536+ x-permission:
74537+ operator: OR
74538+ permissions:
74539+ - code_coverage_read
74540+ x-unstable: '**Note**: This endpoint is in preview and may be subject to change.
74541+
74542+ If you have any feedback, contact [Datadog support](https://docs.datadoghq.com/help/).'
7421874543 /api/v2/container_images:
7421974544 get:
7422074545 description: 'Get all Container Images for your organization.
@@ -103493,6 +103818,9 @@ tags:
103493103818 API. See the [Cloudflare integration page](https://docs.datadoghq.com/integrations/cloudflare/)
103494103819 for more information.
103495103820 name: Cloudflare Integration
103821+ - description: Retrieve and analyze code coverage data from Code Coverage. See the
103822+ [Code Coverage page](https://docs.datadoghq.com/code_coverage/) for more information.
103823+ name: Code Coverage
103496103824- description: Manage your Datadog Confluent Cloud integration accounts and account
103497103825 resources directly through the Datadog API. See the [Confluent Cloud page](https://docs.datadoghq.com/integrations/confluent_cloud/)
103498103826 for more information.
0 commit comments