@Generated(value="OracleSDKGenerator", comments="API Version: 20160918") public final class AuditEvent extends Object
Note: Objects should always be created or deserialized using the AuditEvent.Builder
. This model distinguishes fields that are null
because they are unset from fields that are explicitly set to null
. This is done in the setter methods of the AuditEvent.Builder
, which maintain a set of all explicitly set fields called __explicitlySet__
. The hashCode()
and equals(Object)
methods are implemented to take __explicitlySet__
into account. The constructor, on the other hand, does not set __explicitlySet__
(since the constructor cannot distinguish explicit null
from unset null
).
Modifier and Type | Class and Description |
---|---|
static class |
AuditEvent.Builder |
Constructor and Description |
---|
AuditEvent(String tenantId,
String compartmentId,
String compartmentName,
String eventId,
String eventName,
String eventSource,
String eventType,
Date eventTime,
String principalId,
String credentialId,
String requestAction,
String requestId,
String requestAgent,
Map<String,List<String>> requestHeaders,
String requestOrigin,
Map<String,List<String>> requestParameters,
String requestResource,
Map<String,List<String>> responseHeaders,
String responseStatus,
Date responseTime,
Map<String,Object> responsePayload,
String userName)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
static AuditEvent.Builder |
builder()
Create a new builder.
|
boolean |
equals(Object o) |
Set<String> |
get__explicitlySet__() |
String |
getCompartmentId()
The OCID of the compartment.
|
String |
getCompartmentName()
The name of the compartment.
|
String |
getCredentialId()
The credential ID of the user.
|
String |
getEventId()
The GUID of the event.
|
String |
getEventName()
The name of the event.
|
String |
getEventSource()
The source of the event.
|
Date |
getEventTime()
The time the event occurred, expressed in RFC 3339 timestamp format.
|
String |
getEventType()
The type of the event.
|
String |
getPrincipalId()
The OCID of the user whose action triggered the event.
|
String |
getRequestAction()
The HTTP method of the request.
|
String |
getRequestAgent()
The user agent of the client that made the request.
|
Map<String,List<String>> |
getRequestHeaders()
The HTTP header fields and values in the request.
|
String |
getRequestId()
The opc-request-id of the request.
|
String |
getRequestOrigin()
The IP address of the source of the request.
|
Map<String,List<String>> |
getRequestParameters()
The query parameter fields and values for the request.
|
String |
getRequestResource()
The resource targeted by the request.
|
Map<String,List<String>> |
getResponseHeaders()
The headers of the response.
|
Map<String,Object> |
getResponsePayload()
Metadata of interest from the response payload.
|
String |
getResponseStatus()
The status code of the response.
|
Date |
getResponseTime()
The time of the response to the audited request, expressed in RFC 3339 timestamp format.
|
String |
getTenantId()
The OCID of the tenant.
|
String |
getUserName()
The name of the user or service.
|
int |
hashCode() |
String |
toString() |
@ConstructorProperties(value={"tenantId","compartmentId","compartmentName","eventId","eventName","eventSource","eventType","eventTime","principalId","credentialId","requestAction","requestId","requestAgent","requestHeaders","requestOrigin","requestParameters","requestResource","responseHeaders","responseStatus","responseTime","responsePayload","userName"}) @Deprecated public AuditEvent(String tenantId, String compartmentId, String compartmentName, String eventId, String eventName, String eventSource, String eventType, Date eventTime, String principalId, String credentialId, String requestAction, String requestId, String requestAgent, Map<String,List<String>> requestHeaders, String requestOrigin, Map<String,List<String>> requestParameters, String requestResource, Map<String,List<String>> responseHeaders, String responseStatus, Date responseTime, Map<String,Object> responsePayload, String userName)
public static AuditEvent.Builder builder()
Create a new builder.
public String getTenantId()
The OCID of the tenant.
public String getCompartmentId()
The OCID of the compartment.
public String getCompartmentName()
The name of the compartment. This value is the friendly name associated with compartmentId. This value can change, but the service logs the value that appeared at the time of the audit event.
public String getEventId()
The GUID of the event.
public String getEventName()
The name of the event. Example: LaunchInstance
public String getEventSource()
The source of the event.
public String getEventType()
The type of the event.
public Date getEventTime()
The time the event occurred, expressed in RFC 3339 timestamp format.
public String getPrincipalId()
The OCID of the user whose action triggered the event.
public String getCredentialId()
The credential ID of the user. This value is extracted from the HTTP ‘Authorization’ request header. It consists of the tenantId, userId, and user fingerprint, all delimited by a slash (/).
public String getRequestAction()
The HTTP method of the request.
public String getRequestId()
The opc-request-id of the request.
public String getRequestAgent()
The user agent of the client that made the request.
public Map<String,List<String>> getRequestHeaders()
The HTTP header fields and values in the request.
public String getRequestOrigin()
The IP address of the source of the request.
public Map<String,List<String>> getRequestParameters()
The query parameter fields and values for the request.
public String getRequestResource()
The resource targeted by the request.
public Map<String,List<String>> getResponseHeaders()
The headers of the response.
public String getResponseStatus()
The status code of the response.
public Date getResponseTime()
The time of the response to the audited request, expressed in RFC 3339 timestamp format.
public Map<String,Object> getResponsePayload()
Metadata of interest from the response payload. For example, the OCID of a resource.
public String getUserName()
The name of the user or service. This value is the friendly name associated with principalId.
Copyright © 2016–2019. All rights reserved.