# Events

## Reference

- v4 API:
  - `gitlab.v4.objects.Event`
  - `gitlab.v4.objects.EventManager`
  - `gitlab.Gitlab.events`
  - `gitlab.v4.objects.ProjectEvent`
  - `gitlab.v4.objects.ProjectEventManager`
  - `gitlab.v4.objects.Project.events`
  - `gitlab.v4.objects.UserEvent`
  - `gitlab.v4.objects.UserEventManager`
  - `gitlab.v4.objects.User.events`
- v3 API (projects events only):
  - `gitlab.v3.objects.ProjectEvent`
  - `gitlab.v3.objects.ProjectEventManager`
  - `gitlab.v3.objects.Project.events`
  - `gitlab.Gitlab.project_events`
- GitLab API: https://docs.gitlab.com/ce/api/events.html

## Examples

You can list events for an entire Gitlab instance (admin), users and projects. You can filter you events you want to retrieve using the `action` and `target_type` attributes. The possibole values for these attributes are available on the gitlab documentation.

List all the events (paginated):

    events = gl.events.list()

List the issue events on a project:

    events = project.events.list(target_type='issue')

List the user events:

    events = project.events.list()