

@decorators.detail_route(methods=['post'])
def close(self, request, *args, **kwargs):
    '\n        To close alert - run **POST** against */api/alerts/<alert_uuid>/close/*. No data is required.\n        Only users with staff privileges can close alerts.\n        '
    if (not request.user.is_staff):
        raise PermissionDenied()
    alert = self.get_object()
    alert.close()
    return response.Response(status=status.HTTP_204_NO_CONTENT)

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