Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

18 lines (9 sloc) 0.471 kb
from app_metrics.tasks import librato_metric_task
def _get_func(async):
return librato_metric_task.delay if async else librato_metric_task
def metric(slug, num=1, async=True, **kwargs):
_get_func(async)(slug, num, metric_type="counter", **kwargs)
def timing(slug, seconds_taken, async=True, **kwargs):
"""not implemented"""
def gauge(slug, current_value, async=True, **kwargs):
_get_func(async)(slug, current_value, metric_type="gauge", **kwargs)
Jump to Line
Something went wrong with that request. Please try again.