

def list(self, request, *args, **kwargs):
    '\n        To get a list of alerts, run **GET** against */api/alerts/* as authenticated user.\n\n        Alert severity field can take one of this values: "Error", "Warning", "Info", "Debug".\n        Field scope will contain link to object that cause alert.\n        Context - dictionary that contains information about all related to alert objects.\n\n        Run **POST** against */api/alerts/* to create or update alert. If alert with posted scope and\n        alert_type already exists - it will be updated. Only users with staff privileges can create alerts.\n\n        Request example:\n\n        .. code-block:: javascript\n\n            POST /api/alerts/\n            Accept: application/json\n            Content-Type: application/json\n            Authorization: Token c84d653b9ec92c6cbac41c706593e66f567a7fa4\n            Host: example.com\n\n            {\n                "scope": "http://testserver/api/projects/b9e8a102b5ff4469b9ac03253fae4b95/",\n                "message": "message#1",\n                "alert_type": "first_alert",\n                "severity": "Debug"\n            }\n        '
    return super(AlertViewSet, self).list(request, *args, **kwargs)

dataset/ETHPy150Open opennode/nodeconductor/nodeconductor/logging/views.py AlertViewSet.list/original