Mojolicious::Plugin::Statsd::Adapter::Memory - In-Memory stat recording
This adapter for Mojolicious::Plugin::Statsd keeps all recorded stats in its "stats" attribute and does nothing else. It's useful for testing.
Mojolicious::Plugin::Statsd::Adapter::Memory is a Mojo::Base
A hashref with a key per stat name recorded. Currently, counters are scalar values and timings are hashrefs with 'samples', 'avg, 'min', 'max' keys. This isn't meant to keep reliable metrics right now.
See "timing" in Mojolicious::Plugin::Statsd.
See "counter" in Mojolicious::Plugin::Statsd.
To install Mojolicious::Plugin::Statsd, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Mojolicious::Plugin::Statsd
CPAN shell
perl -MCPAN -e shell install Mojolicious::Plugin::Statsd
For more information on module installation, please visit the detailed CPAN module installation guide.