Exemplo n.º 1
0
def record(request):
    flag = waffle.models.Flag.objects.get(name='collect-timings')
    # The rate limiting is done up on the client, but if things go wrong
    # we can just turn this off here.
    if flag.everyone:
        return django_statsd_record(request)
    return http.HttpResponseForbidden()
Exemplo n.º 2
0
def record(request):
    flag = waffle.models.Flag.objects.get(name='collect-timings')
    # The rate limiting is done up on the client, but if things go wrong
    # we can just turn this off here.
    if flag.everyone:
        return django_statsd_record(request)
    return http.HttpResponseForbidden()
Exemplo n.º 3
0
def record(request):
    # The rate limiting is done up on the client, but if things go wrong
    # we can just turn the percentage down to zero.
    if get_collect_timings():
        return django_statsd_record(request)
    return HttpResponseForbidden()
Exemplo n.º 4
0
def record(request):
    # The rate limiting is done up on the client, but if things go wrong
    # we can just turn the percentage down to zero.
    if get_collect_timings():
        return django_statsd_record(request)
    raise PermissionDenied
Exemplo n.º 5
0
def record(request):
    # The rate limiting is done up on the client, but if things go wrong
    # we can just turn the percentage down to zero.
    if get_collect_timings():
        return django_statsd_record(request)
    raise PermissionDenied
Exemplo n.º 6
0
Arquivo: views.py Projeto: vdt/zamboni
def record(request):
    # The rate limiting is done up on the client, but if things go wrong
    # we can just turn the percentage down to zero.
    if get_collect_timings():
        return django_statsd_record(request)
    return HttpResponseForbidden()