evaluations

Count what a backfill over the given window would evaluate, without creating one.

post/api/projects/{project_id}/evaluations/{evaluation_id}/backfills/estimate/

Request

  • Base URL: https://us.posthog.com
  • URL: https://us.posthog.com/api/projects/{project_id}/evaluations/{evaluation_id}/backfills/estimate/
  • Auth: HTTP bearer

Path parameters

evaluation_idstring uuid required
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/.

Request body

window_startstring date-time required

Inclusive start of the window, by unit timestamp.

window_endstring date-time required

Exclusive end of the window. Values in the future are clamped to now.

rerun_existingboolean

Evaluate units again even when this evaluation already has a result for them.

Response

total_unitsinteger required

Units that would be evaluated.

already_evaluated_unitsinteger required

Units in the range this evaluation has already judged. They are excluded from total_units unless rerun_existing is set.

unit'generation' | 'trace' | 'session' required
  • generation - Generation
  • trace - Trace
  • session - Session
window_startstring date-time required

Window start after clamping.

window_endstring date-time required

Window end after clamping.

Changes

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