View Source API Reference Trifle.Stats v2.5.0
Modules
Simple timeline analytics for tracking custom metrics.
Behaviour for custom aggregator implementations.
Max aggregator - finds maximum value with optional precision handling.
Mean aggregator - calculates arithmetic mean of values with optional precision handling.
Min aggregator - finds minimum value with optional precision handling.
Sum aggregator - calculates sum of values with optional precision handling.
The Trifle.Stats application.
Buffered write layer for Trifle.Stats.
Configuration management for Trifle.Stats with Ruby gem compatibility.
Error raised when configuration is invalid.
Behaviour for designator implementations.
Custom designator - classifies values using user-defined bucket boundaries.
Geometric designator - classifies values using logarithmic/geometric scaling with optional precision handling. Uses powers of 10 for bucket boundaries.
Linear designator - classifies values using fixed-step linear progression.
MongoDB driver for Trifle.Stats with Ruby gem compatibility.
MySQL driver for Trifle.Stats using JSON columns for efficient JSON storage. Supports joined and separated identifier modes with atomic upserts.
PostgreSQL driver for Trifle.Stats using JSONB columns for efficient JSON storage. Supports both joined and separated identifier modes.
In-memory Process driver for Trifle.Stats.
Redis driver for Trifle.Stats with Ruby gem compatibility.
SQLite driver for Trifle.Stats using exqlite. Stores time series data in SQLite with JSON1 extension for efficient querying.
Error raised when a required driver is not found or not configured.
Base error module for Trifle.Stats.
Behaviour for custom formatter implementations.
Category formatter - transforms timeseries into category/histogram data. Groups data by category keys and accumulates numeric totals keyed by fully-qualified path strings.
Timeline formatter - transforms timeseries into timeline format.
Preserves temporal ordering and returns a map of path strings to
[at, value] entry lists.
Key structure for trifle-stats operations.
Parser for granularity string representations like "1m", "15m", "33m", "1h", "1d", etc.
Beam operation - sends a status ping with current data. Used for tracking latest values in separated identifier mode.
Scan operation - retrieves the latest status for a key. Returns the most recent ping data in separated identifier mode.
Values operation - retrieves time-series data for a key over a time granularity.
Precision handling utilities using the Decimal library for high-accuracy arithmetic.
Series wrapper for timeseries data with pipe-friendly processing capabilities.
Dynamic method generation for Series operations using macros.
Fluent helpers for %Trifle.Stats.Series{}.
Dynamic registration system for aggregators, formatters, and transponders.
Behaviour for custom transponder implementations.
Expression-based transponder.
Minimal expression parser and evaluator for transponders.
Error raised when input validation fails.