

@decorators.list_route()
def count(self, request, *args, **kwargs):
    '\n        To get a count of events - run **GET** against */api/events/count/* as authenticated user.\n        Endpoint support same filters as events list.\n\n        Response example:\n\n        .. code-block:: javascript\n\n            {"count": 12321}\n        '
    self.queryset = self.filter_queryset(self.get_queryset())
    return response.Response({
        'count': self.queryset.count(),
    }, status=status.HTTP_200_OK)

dataset/ETHPy150Open opennode/nodeconductor/nodeconductor/logging/views.py EventViewSet.count/original