Retrieve aggregated test result metrics for repository, owner, and organization

GET /api/0/organizations/{organization_id_or_slug}/prevent/owner/{owner}/repository/{repository}/test-results-aggregates/

Retrieves aggregated test result metrics for a given repository and owner. Also accepts a query parameter to specify the time period for the metrics.

Path Parameters

organization_id_or_slug (string)
REQUIRED

The ID or slug of the organization the resource belongs to.

owner (string)
REQUIRED

The owner of the repository.

repository (string)
REQUIRED

The name of the repository.

Query Parameters:

interval (string)

The time interval to search for results by.

Available fields are:

  • INTERVAL_30_DAY
  • INTERVAL_7_DAY
  • INTERVAL_1_DAY

Scopes

<auth_token> requires one of the following scopes:
    Copied
    curl https://sentry.io/api/0/organizations/{organization_id_or_slug}/prevent/owner/{owner}/repository/{repository}/test-results-aggregates/ \
     -H 'Authorization: Bearer <auth_token>'
    RESPONSESCHEMA
    Copied
    .
    Was this helpful?