

def list(self, request, *args, **kwargs):
    '\n        To get a list of events - run **GET** against */api/events/* as authenticated user. Note that a user can\n        only see events connected to objects she is allowed to see.\n\n        Sorting is supported in ascending and descending order by specifying a field to an **?o=** parameter. By default\n        events are sorted by @timestamp in descending order.\n\n        Run POST against */api/events/* to create an event. Only users with staff privileges can create events.\n        New event will be emitted with `custom_notification` event type.\n        Request should contain following fields:\n\n        - level: the level of current event. Following levels are supported: debug, info, warning, error\n        - message: string representation of event message\n        - scope: optional URL, which points to the loggable instance\n\n        Request example:\n\n        .. code-block:: javascript\n\n            POST /api/events/\n            Accept: application/json\n            Content-Type: application/json\n            Authorization: Token c84d653b9ec92c6cbac41c706593e66f567a7fa4\n            Host: example.com\n\n            {\n                "level": "info",\n                "message": "message#1",\n                "scope": "http://example.com/api/customers/9cd869201e1b4158a285427fcd790c1c/"\n            }\n        '
    self.queryset = self.filter_queryset(self.get_queryset())
    page = args.paginate_queryset(self.queryset)
    if (page is not None):
        return self.get_paginated_response(page)
    return response.Response(self.queryset)

dataset/ETHPy150Open opennode/nodeconductor/nodeconductor/logging/views.py EventViewSet.list/VarMisuse@37/509 `self`->`args`