View Source Trifle.Stats.Series.Registry (Trifle.Stats v2.5.0)

Dynamic registration system for aggregators, formatters, and transponders.

Built-in transponders are intentionally limited to :expression.

Summary

Functions

Returns a specification to start this module under a supervisor.

Clear all registered components (useful for testing).

Get a registered aggregator module by name.

Get a registered formatter module by name.

Get a registered transponder module by name.

List all registered components.

Register a custom aggregator module.

Register a custom formatter module.

Register a custom transponder module.

Functions

Link to this function

call_aggregator(series, name, args)

View Source
Link to this function

call_formatter(series, name, args)

View Source
Link to this function

call_transponder(series, name, args)

View Source

Returns a specification to start this module under a supervisor.

See Supervisor.

Clear all registered components (useful for testing).

Get a registered aggregator module by name.

Get a registered formatter module by name.

Get a registered transponder module by name.

List all registered components.

Link to this function

register_aggregator(name, module)

View Source

Register a custom aggregator module.

The module must implement the Trifle.Stats.Aggregator.Behaviour.

Link to this function

register_formatter(name, module)

View Source

Register a custom formatter module.

The module must implement the Trifle.Stats.Formatter.Behaviour.

Link to this function

register_transponder(name, module)

View Source

Register a custom transponder module.

The module must implement the Trifle.Stats.Transponder.Behaviour.