예제 #1
0
def put_metric(slug, user=None, count=1, **kwargs):
    """ Increment a metric by a given user """
    backend = get_backend()
    backend.put_metric(slug, user=user, count=count, **kwargs)
예제 #2
0
def set_metric(slug, user=None, count=1, **kwargs):
    backend = get_backend()
    try:
        backend.set_metric(slug, user=user, count=count, **kwargs)
    except AttributeError:
        raise