Skip to content

Instantly share code, notes, and snippets.

@sethhall
Created March 5, 2013 20:07
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 sethhall/5093794 to your computer and use it in GitHub Desktop.
Save sethhall/5093794 to your computer and use it in GitHub Desktop.
local a = Metrics::create_measurement("apps.bytes", [$measure=set(Metrics::SUM)]);
local b = Metrics::create_measurement("apps.hits", [$measure=set(Metrics::UNIQUE)]);
Metrics::create_metric([$every=break_interval, $measurements=set(a, b),
$period_finished(ts: time, metric_name: string, filter_name: string, data: Metrics::MetricTable) =
{
print "woo";
}]);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment