Package com.datadog.api.client.v2.api
Class CodeCoverageApi
java.lang.Object
com.datadog.api.client.v2.api.CodeCoverageApi
@Generated("https://github.com/DataDog/datadog-api-client-java/blob/master/.generator")
public class CodeCoverageApi
extends Object
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the API client.Get code coverage summary for a branch.Get code coverage summary for a branch.Retrieve aggregated code coverage statistics for a specific branch in a repository.Get code coverage summary for a branch.Get code coverage summary for a commit.Get code coverage summary for a commit.Retrieve aggregated code coverage statistics for a specific commit in a repository.Get code coverage summary for a commit.Get per-file code coverage data.Get per-file code coverage data.Retrieve per-file code coverage data for a specific commit, branch, or pull request.Get per-file code coverage data.Get code coverage summary for a pull request.Get code coverage summary for a pull request.Retrieve aggregated code coverage statistics for a specific pull request in a repository.Get code coverage summary for a pull request.voidsetApiClient(ApiClient apiClient) Set the API client.
-
Constructor Details
-
CodeCoverageApi
public CodeCoverageApi() -
CodeCoverageApi
-
-
Method Details
-
getApiClient
Get the API client.- Returns:
- API client
-
setApiClient
Set the API client.- Parameters:
apiClient- an instance of API client
-
getCodeCoverageBranchSummary
public CoverageSummaryResponse getCodeCoverageBranchSummary(BranchCoverageSummaryRequest body) throws ApiException Get code coverage summary for a branch.- Parameters:
body- (required)- Returns:
- CoverageSummaryResponse
- Throws:
ApiException- if fails to make API call
-
getCodeCoverageBranchSummaryAsync
public CompletableFuture<CoverageSummaryResponse> getCodeCoverageBranchSummaryAsync(BranchCoverageSummaryRequest body) Get code coverage summary for a branch.- Parameters:
body- (required)- Returns:
- CompletableFuture<CoverageSummaryResponse>
-
getCodeCoverageBranchSummaryWithHttpInfo
public ApiResponse<CoverageSummaryResponse> getCodeCoverageBranchSummaryWithHttpInfo(BranchCoverageSummaryRequest body) throws ApiException Retrieve aggregated code coverage statistics for a specific branch in a repository. This endpoint provides overall coverage metrics as well as breakdowns by service and code owner.- Parameters:
body- (required)- Returns:
- ApiResponse<CoverageSummaryResponse>
- Throws:
ApiException- if fails to make API call- Http Response Details:
Response details Status Code Description Response Headers 200 OK - 400 Bad Request - 403 Not Authorized - 404 Not Found - 429 Too many requests - 500 Internal server error -
-
getCodeCoverageBranchSummaryWithHttpInfoAsync
public CompletableFuture<ApiResponse<CoverageSummaryResponse>> getCodeCoverageBranchSummaryWithHttpInfoAsync(BranchCoverageSummaryRequest body) Get code coverage summary for a branch.- Parameters:
body- (required)- Returns:
- CompletableFuture<ApiResponse<CoverageSummaryResponse>>
-
getCodeCoverageCommitSummary
public CoverageSummaryResponse getCodeCoverageCommitSummary(CommitCoverageSummaryRequest body) throws ApiException Get code coverage summary for a commit.- Parameters:
body- (required)- Returns:
- CoverageSummaryResponse
- Throws:
ApiException- if fails to make API call
-
getCodeCoverageCommitSummaryAsync
public CompletableFuture<CoverageSummaryResponse> getCodeCoverageCommitSummaryAsync(CommitCoverageSummaryRequest body) Get code coverage summary for a commit.- Parameters:
body- (required)- Returns:
- CompletableFuture<CoverageSummaryResponse>
-
getCodeCoverageCommitSummaryWithHttpInfo
public ApiResponse<CoverageSummaryResponse> getCodeCoverageCommitSummaryWithHttpInfo(CommitCoverageSummaryRequest body) throws ApiException Retrieve aggregated code coverage statistics for a specific commit in a repository. This endpoint provides overall coverage metrics as well as breakdowns by service and code owner.The commit SHA must be a 40-character hexadecimal string (SHA-1 hash).
- Parameters:
body- (required)- Returns:
- ApiResponse<CoverageSummaryResponse>
- Throws:
ApiException- if fails to make API call- Http Response Details:
Response details Status Code Description Response Headers 200 OK - 400 Bad Request - 403 Not Authorized - 404 Not Found - 429 Too many requests - 500 Internal server error -
-
getCodeCoverageCommitSummaryWithHttpInfoAsync
public CompletableFuture<ApiResponse<CoverageSummaryResponse>> getCodeCoverageCommitSummaryWithHttpInfoAsync(CommitCoverageSummaryRequest body) Get code coverage summary for a commit.- Parameters:
body- (required)- Returns:
- CompletableFuture<ApiResponse<CoverageSummaryResponse>>
-
getCodeCoverageFiles
Get per-file code coverage data.See
getCodeCoverageFilesWithHttpInfo(com.datadog.api.client.v2.model.FilesCoverageRequest).- Parameters:
body- (required)- Returns:
- FilesCoverageResponse
- Throws:
ApiException- if fails to make API call
-
getCodeCoverageFilesAsync
public CompletableFuture<FilesCoverageResponse> getCodeCoverageFilesAsync(FilesCoverageRequest body) Get per-file code coverage data.See
getCodeCoverageFilesWithHttpInfoAsync(com.datadog.api.client.v2.model.FilesCoverageRequest).- Parameters:
body- (required)- Returns:
- CompletableFuture<FilesCoverageResponse>
-
getCodeCoverageFilesWithHttpInfo
public ApiResponse<FilesCoverageResponse> getCodeCoverageFilesWithHttpInfo(FilesCoverageRequest body) throws ApiException Retrieve per-file code coverage data for a specific commit, branch, or pull request. Exactly one ofcommit_sha,branch, orpr_numbermust be provided. Optionally filter byservice,codeowner, orflag(at most one).- Parameters:
body- (required)- Returns:
- ApiResponse<FilesCoverageResponse>
- Throws:
ApiException- if fails to make API call- Http Response Details:
Response details Status Code Description Response Headers 200 OK - 400 Bad Request - 403 Not Authorized - 404 Not Found - 429 Too many requests - 500 Internal server error -
-
getCodeCoverageFilesWithHttpInfoAsync
public CompletableFuture<ApiResponse<FilesCoverageResponse>> getCodeCoverageFilesWithHttpInfoAsync(FilesCoverageRequest body) Get per-file code coverage data.See
getCodeCoverageFilesWithHttpInfo(com.datadog.api.client.v2.model.FilesCoverageRequest).- Parameters:
body- (required)- Returns:
- CompletableFuture<ApiResponse<FilesCoverageResponse>>
-
getCodeCoveragePRSummary
public CoverageSummaryResponse getCodeCoveragePRSummary(PRCoverageSummaryRequest body) throws ApiException Get code coverage summary for a pull request.See
getCodeCoveragePRSummaryWithHttpInfo(com.datadog.api.client.v2.model.PRCoverageSummaryRequest).- Parameters:
body- (required)- Returns:
- CoverageSummaryResponse
- Throws:
ApiException- if fails to make API call
-
getCodeCoveragePRSummaryAsync
public CompletableFuture<CoverageSummaryResponse> getCodeCoveragePRSummaryAsync(PRCoverageSummaryRequest body) Get code coverage summary for a pull request.See
getCodeCoveragePRSummaryWithHttpInfoAsync(com.datadog.api.client.v2.model.PRCoverageSummaryRequest).- Parameters:
body- (required)- Returns:
- CompletableFuture<CoverageSummaryResponse>
-
getCodeCoveragePRSummaryWithHttpInfo
public ApiResponse<CoverageSummaryResponse> getCodeCoveragePRSummaryWithHttpInfo(PRCoverageSummaryRequest body) throws ApiException Retrieve aggregated code coverage statistics for a specific pull request in a repository. This endpoint provides overall coverage metrics as well as breakdowns by service and code owner.- Parameters:
body- (required)- Returns:
- ApiResponse<CoverageSummaryResponse>
- Throws:
ApiException- if fails to make API call- Http Response Details:
Response details Status Code Description Response Headers 200 OK - 400 Bad Request - 403 Not Authorized - 404 Not Found - 429 Too many requests - 500 Internal server error -
-
getCodeCoveragePRSummaryWithHttpInfoAsync
public CompletableFuture<ApiResponse<CoverageSummaryResponse>> getCodeCoveragePRSummaryWithHttpInfoAsync(PRCoverageSummaryRequest body) Get code coverage summary for a pull request.See
getCodeCoveragePRSummaryWithHttpInfo(com.datadog.api.client.v2.model.PRCoverageSummaryRequest).- Parameters:
body- (required)- Returns:
- CompletableFuture<ApiResponse<CoverageSummaryResponse>>
-