Skip to content

Instantly share code, notes, and snippets.

@aranw
Created September 11, 2013 21:52
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save aranw/6530272 to your computer and use it in GitHub Desktop.
Save aranw/6530272 to your computer and use it in GitHub Desktop.
<?php
class StatsdEventHandler {
public function increment($metrics, $delta, $sampleRate, $event)
{
}
public function subscribe($events)
{
$events->listen('statsd.increment.*', 'StatsdEventHandler@increment');
}
}
<?php
Event::fire('statsd.increment.web.login');
Event::fire('statsd.increment.web.login', array(1));
Event::fire('statsd.increment', array(array(
'first.metric',
'second.metric'
), 2));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment