public class AuditEventApi extends AbstractApi
Constants.ActionType, Constants.ApplicationScope, Constants.ArchiveFormat, Constants.BuildGitStrategy, Constants.CommitBuildState, Constants.DeploymentStatus, Constants.DeployTokenScope, Constants.Encoding, Constants.EpicOrderBy, Constants.GroupOrderBy, Constants.GroupSearchScope, Constants.ImpersonationState, Constants.IssueOrderBy, Constants.IssueScope, Constants.IssueState, Constants.JobScope, Constants.LineType, Constants.MergeRequestOrderBy, Constants.MergeRequestScope, Constants.MergeRequestSearchIn, Constants.MergeRequestState, Constants.MilestoneState, Constants.PipelineOrderBy, Constants.PipelineScope, Constants.ProjectOrderBy, Constants.ProjectSearchScope, Constants.SearchScope, Constants.SortOrder, Constants.StateEvent, Constants.TagOrderBy, Constants.TargetType, Constants.TodoAction, Constants.TodoState, Constants.TodoType, Constants.TokenType
gitLabApi
NEXT_PAGE_HEADER, PAGE_HEADER, PAGE_PARAM, PER_PAGE, PER_PAGE_PARAM, PREV_PAGE_HEADER, TOTAL_HEADER, TOTAL_PAGES_HEADER
Constructor and Description |
---|
AuditEventApi(GitLabApi gitLabApi) |
Modifier and Type | Method and Description |
---|---|
AuditEvent |
getAuditEvent(Integer auditEventId)
Get a specific instance audit event.
|
List<AuditEvent> |
getAuditEvents(Date created_after,
Date created_before,
String entityType,
Integer entityId)
Get a List of the group audit events viewable by Maintainer or an Owner of the group.
|
Pager<AuditEvent> |
getAuditEvents(Date created_after,
Date created_before,
String entityType,
Integer entityId,
int itemsPerPage)
Get a Pager of the group audit events viewable by Maintainer or an Owner of the group.
|
Stream<AuditEvent> |
getAuditEventsStream(Date created_after,
Date created_before,
String entityType,
Integer entityId)
Get a Stream of the group audit events viewable by Maintainer or an Owner of the group.
|
addFormParam, addFormParam, delete, delete, get, get, getApiClient, getApiVersion, getDefaultPerPage, getDefaultPerPageParam, getDefaultPerPageParam, getGroupIdOrPath, getLabelIdOrName, getPageQueryParams, getPageQueryParams, getPerPageQueryParam, getProjectIdOrPath, getUserIdOrUsername, getWithAccepts, handle, head, isApiVersion, post, post, post, post, post, put, put, put, putUpload, putUpload, putWithFormData, upload, upload, upload, urlEncode, validate
public AuditEventApi(GitLabApi gitLabApi)
public List<AuditEvent> getAuditEvents(Date created_after, Date created_before, String entityType, Integer entityId) throws GitLabApiException
GET /audit_events/
created_after
- Return group audit events created on or after the given time.created_before
- Return group audit events created on or before the given time.entityType
- Return audit events for the given entity type. Valid values are: User, Group, or Project.entityId
- Return audit events for the given entity ID. Requires entityType attribute to be present.GitLabApiException
- if any exception occurspublic Pager<AuditEvent> getAuditEvents(Date created_after, Date created_before, String entityType, Integer entityId, int itemsPerPage) throws GitLabApiException
GET /audit_events
created_after
- Return group audit events created on or after the given time.created_before
- Return group audit events created on or before the given time.entityType
- Return audit events for the given entity type. Valid values are: User, Group, or Project.entityId
- Return audit events for the given entity ID. Requires entityType attribute to be present.itemsPerPage
- the number of Audit Event instances that will be fetched per pageGitLabApiException
- if any exception occurspublic Stream<AuditEvent> getAuditEventsStream(Date created_after, Date created_before, String entityType, Integer entityId) throws GitLabApiException
GET /audit_events
created_after
- Return group audit events created on or after the given time.created_before
- Return group audit events created on or before the given time.entityType
- Return audit events for the given entity type. Valid values are: User, Group, or Project.entityId
- Return audit events for the given entity ID. Requires entityType attribute to be present.GitLabApiException
- if any exception occurspublic AuditEvent getAuditEvent(Integer auditEventId) throws GitLabApiException
GitLab Endpoint: GET /audit_events/:id
auditEventId
- the auditEventId, requiredGitLabApiException
- if any exception occursCopyright © 2020. All rights reserved.