Language: Python · Sphere: programming · Category: Monitoring
Metric aggregator with tags for counters, gauges, and histograms. Supports percentile calculations and tagged metrics.
When it runs, metric aggregator guarantees agg.get_counter('requests') == 4; agg.get_counter('errors', {'type': 'timeout'}) == 3; agg.get_counter('requests') + agg.get_counter('errors', {'type': 'timeout'}) == 7 (proven by run).
Checkable constraints:
agg.get_counter('requests') == 4agg.get_counter('errors', {'type': 'timeout'}) == 3agg.get_counter('errors', {'type': 'validation'}) == 1agg.get_counter('requests') + agg.get_counter('errors', {'type': 'timeout'}) == 7agg.get_gauge('cpu') == 67.8stats['count'] == 20stats['sum'] == 950stats['min'] == 0 and stats['max'] == 95
- Green-run: ✓ passes (re-run under the extractor's gate)
- Constraint strength: recovery (truth-pinned)
- Independent oracle: — none yet (green-run candidate; not an axiom under the frozen ruler)
- Peer review: unreviewed
△ AURA Pattern Library — © Reality Optimizer