summaryrefslogtreecommitdiff
path: root/gitlab/v4/objects.py
diff options
context:
space:
mode:
Diffstat (limited to 'gitlab/v4/objects.py')
-rw-r--r--gitlab/v4/objects.py10
1 files changed, 10 insertions, 0 deletions
diff --git a/gitlab/v4/objects.py b/gitlab/v4/objects.py
index 62e8d4a..5125ff4 100644
--- a/gitlab/v4/objects.py
+++ b/gitlab/v4/objects.py
@@ -118,6 +118,16 @@ class Event(RESTObject):
_short_print_attr = "target_title"
+class AuditEvent(RESTObject):
+ _id_attr = "id"
+
+
+class AuditEventManager(ListMixin, RESTManager):
+ _path = "/audit_events"
+ _obj_cls = AuditEvent
+ _list_filters = ("created_after", "created_before", "entity_type", "entity_id")
+
+
class EventManager(ListMixin, RESTManager):
_path = "/events"
_obj_cls = Event