API referenceAnalytics

POST /analytics/diff appear in a selection vs a baseline cohort'

Honeycomb-style BubbleUp. Give a selection cohort and a baseline cohort (each the same filter shape as the other analytics reads, plus errorsOnly / minDurationMs so the selection can be the slow-or-error slice). For each cataloged attribute key it computes the value distribution in both cohorts and ranks keys by how over-represented a value is in the selection. Restrict the diffed keys with 'keys' (else the top cataloged keys are used, capped).

POST
/analytics/diff

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/problem+json

curl -X POST "https://example.com/analytics/diff" \  -H "Content-Type: application/json" \  -d '{    "baseline": {},    "selection": {}  }'
{  "$schema": "https://example.com/schemas/DiffOutputBody.json",  "attributes": [    {      "key": "string",      "score": 0.1,      "values": [        {          "baselineCount": 0,          "baselineFraction": 0.1,          "delta": 0.1,          "selectionCount": 0,          "selectionFraction": 0.1,          "value": "string"        }      ]    }  ]}