@Generated(value="OracleSDKGenerator", comments="API Version: 20190901") public final class AuditEvent extends Object
All the attributes of an audit event. For more information, see Viewing Audit Log Events.
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 eventType,
String cloudEventsVersion,
String eventTypeVersion,
String source,
String eventId,
Date eventTime,
String contentType,
Data data)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
static AuditEvent.Builder |
builder()
Create a new builder.
|
boolean |
equals(Object o) |
Set<String> |
get__explicitlySet__() |
String |
getCloudEventsVersion()
The version of the CloudEvents specification.
|
String |
getContentType()
The content type of the data contained in
data . |
Data |
getData() |
String |
getEventId()
The GUID of the event.
|
Date |
getEventTime()
The time the event occurred, expressed in RFC 3339 timestamp format.
|
String |
getEventType()
The type of event that happened.
|
String |
getEventTypeVersion()
The version of the event type.
|
String |
getSource()
The source of the event.
|
int |
hashCode() |
String |
toString() |
@ConstructorProperties(value={"eventType","cloudEventsVersion","eventTypeVersion","source","eventId","eventTime","contentType","data"}) @Deprecated public AuditEvent(String eventType, String cloudEventsVersion, String eventTypeVersion, String source, String eventId, Date eventTime, String contentType, Data data)
public static AuditEvent.Builder builder()
Create a new builder.
public String getEventType()
The type of event that happened.
The service that produces the event can also add, remove, or change the meaning of a field. A service implementing these type changes would publish a new version of an eventType
and revise the eventTypeVersion
field.
Example: com.oraclecloud.ComputeApi.GetInstance
public String getCloudEventsVersion()
The version of the CloudEvents specification. The structure of the envelope follows the CloudEvents industry standard format hosted by the Cloud Native Computing Foundation ( CNCF).
Audit uses version 0.1 specification of the CloudEvents event envelope.
Example: 0.1
public String getEventTypeVersion()
The version of the event type. This version applies to the payload of the event, not the envelope. Use cloudEventsVersion
to determine the version of the envelope.
Example: 2.0
public String getSource()
The source of the event.
Example: ComputeApi
public String getEventId()
The GUID of the event.
public Date getEventTime()
The time the event occurred, expressed in RFC 3339 timestamp format.
Example: 2019-09-18T00:10:59.252Z
public String getContentType()
The content type of the data contained in data
.
Example: application/json
public Data getData()
Copyright © 2016–2020. All rights reserved.