MCPcopy Create free account
hub / github.com/Flagsmith/flagsmith / ResultsAggregates

Class ResultsAggregates

api/experimentation/dataclasses.py:62–69  ·  view source on GitHub ↗

Sufficient statistics gathered from the warehouse for one experiment: the specs they were computed from, per-variant identity counts, and per metric the per-variant ``VariantStats``. Bundled so the keys can't drift.

Source from the content-addressed store, hash-verified

60
61@dataclass(frozen=True)
62class ResultsAggregates:
63 """Sufficient statistics gathered from the warehouse for one experiment:
64 the specs they were computed from, per-variant identity counts, and per
65 metric the per-variant ``VariantStats``. Bundled so the keys can't drift."""
66
67 specs: list[MetricSpec]
68 exposure_counts: dict[str, int]
69 metric_stats: dict[int, dict[str, VariantStats]]
70
71
72@dataclass(frozen=True)

Callers 2

get_metric_variant_statsFunction · 0.90
_aggregatesFunction · 0.90

Calls

no outgoing calls

Tested by 1

_aggregatesFunction · 0.72

Used in the wild real call sites across dependent graphs

searching dependent graphs…