engineering_analytics
engineering_analytics

One owning team's CI test activity: per-test current-vs-prior signal pairs (the before/after comparison) over the window and its equal-length prior twin. Signal = runs where an owned test failed, errored, or a retry recovered it. Counts are absolute, never rates: CI emits every failure but omits ordinary passing spans, so there is no execution denominator. 'suspected_regression' means no recovery was recorded in this data, not that the test never flakes.

get/api/projects/{project_id}/engineering_analytics/team_ci_activity/

Request

  • Base URL: https://us.posthog.com
  • URL: https://us.posthog.com/api/projects/{project_id}/engineering_analytics/team_ci_activity/
  • Auth: HTTP bearer

Path parameters

project_idstring required

Project ID of the project you're trying to access. To find the ID of the project, make a call to /api/projects/.

Query parameters

date_fromstring

Window start: relative ('-14d', '-7d') or ISO8601. Defaults to -14d; the window may span at most 30 days. An equal-length prior window feeds the *_prior twins; near the 30-day ceiling that prior window can reach past Traces retention, deflating *_prior counts.

date_tostring

Window end: relative or ISO8601. Defaults to now.

owner_teamstring required

Owning team slug to scope to (as returned by team_ci_health), e.g. 'team-replay', or the literal 'unowned' for tests with no ownership stamp.

source_idstring uuid

Connected GitHub data warehouse source to read from. Defaults to the oldest connected GitHub source when the team has more than one.

test_limitinteger

Maximum number of per-test signal rows to return (1-100). Defaults to 25.

Response

owner_teamstring required

The team slug this activity is scoped to, or 'unowned'.

truncated_testsboolean required

True when more owned tests had signal than the test cap.

Changes

No recorded changes to this operation across all 1 revision of this API.