A metric used to measure experiment results
{ "$schema": "https://json-schema.org/draft/2020-12/schema", "$id": "#/components/schemas/Metric", "title": "Metric", "type": "object", "description": "A metric used to measure experiment results", "properties": { "event_id": { "type": "integer", "format": "int64", "description": "The event ID this metric tracks" }, "aggregator": { "type": "string", "description": "How to aggregate the metric", "enum": [ "unique", "count", "sum" ] }, "field": { "type": "string", "description": "The field to aggregate on" }, "scope": { "type": "string", "description": "The scope of the metric", "enum": [ "visitor", "session", "event" ] }, "winning_direction": { "type": "string", "description": "The direction that indicates improvement", "enum": [ "increasing", "decreasing" ] } } }