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

Function _spec

api/tests/unit/experimentation/test_services.py:569–580  ·  view source on GitHub ↗
(
    metric_id: int = 7,
    event: str = "purchase",
    aggregation: str = MetricAggregation.OCCURRENCE,
    lower_is_better: bool = False,
)

Source from the content-addressed store, hash-verified

567
568
569def _spec(
570 metric_id: int = 7,
571 event: str = "purchase",
572 aggregation: str = MetricAggregation.OCCURRENCE,
573 lower_is_better: bool = False,
574) -> MetricSpec:
575 return MetricSpec(
576 metric_id=metric_id,
577 event=event,
578 aggregation=aggregation,
579 lower_is_better=lower_is_better,
580 )
581
582
583def _aggregates(

Calls 4

MetricSpecClass · 0.90
RolloutSpecClass · 0.90
AuthorDataClass · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…