@Generated(value="OracleSDKGenerator", comments="API Version: 20181201") public final class AuditEventSummary extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
The resource represents the audit events collected from the target database by Oracle Data Safe.
Note: Objects should always be created or deserialized using the AuditEventSummary.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 AuditEventSummary.Builder
, which maintain a
set of all explicitly set fields called ExplicitlySetBmcModel.__explicitlySet__
. The hashCode()
and
equals(Object)
methods are implemented to take ExplicitlySetBmcModel.__explicitlySet__
into account.
The constructor, on the other hand, does not set ExplicitlySetBmcModel.__explicitlySet__
(since the
constructor cannot distinguish explicit null
from unset null
).
Modifier and Type | Class and Description |
---|---|
static class |
AuditEventSummary.AuditLocation
The location of the audit.
|
static class |
AuditEventSummary.AuditType
Type of auditing.
|
static class |
AuditEventSummary.Builder |
static class |
AuditEventSummary.DatabaseType
The type of the target database that was audited.
|
static class |
AuditEventSummary.OperationStatus
Indicates whether the operation was a success or a failure.
|
static class |
AuditEventSummary.TargetClass
Class of the target that was audited.
|
Constructor and Description |
---|
AuditEventSummary(String id,
String compartmentId,
String dbUserName,
String targetId,
String targetName,
AuditEventSummary.DatabaseType databaseType,
AuditEventSummary.TargetClass targetClass,
Date auditEventTime,
Date timeCollected,
String osUserName,
String operation,
AuditEventSummary.OperationStatus operationStatus,
String eventName,
String errorCode,
String errorMessage,
String objectType,
String objectName,
String objectOwner,
String clientHostname,
String clientIp,
String auditTrailId,
Boolean isAlerted,
String actionTaken,
String clientProgram,
String commandText,
String commandParam,
String extendedEventAttributes,
AuditEventSummary.AuditLocation auditLocation,
String osTerminal,
String clientId,
String auditPolicies,
AuditEventSummary.AuditType auditType,
Map<String,String> freeformTags,
Map<String,Map<String,Object>> definedTags)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
static AuditEventSummary.Builder |
builder()
Create a new builder.
|
boolean |
equals(Object o) |
String |
getActionTaken()
The action taken for this audit event.
|
Date |
getAuditEventTime()
Time of audit event occurrence in the target database.
|
AuditEventSummary.AuditLocation |
getAuditLocation()
The location of the audit.
|
String |
getAuditPolicies()
Comma-seperated list of audit policies that caused the current audit event.
|
String |
getAuditTrailId()
The OCID of the audit trail that generated this audit event.
|
AuditEventSummary.AuditType |
getAuditType()
Type of auditing.
|
String |
getClientHostname()
Name of the host machine from which the session was spawned.
|
String |
getClientId()
The client identifier in each Oracle session.
|
String |
getClientIp()
IP address of the host from which the session was spawned.
|
String |
getClientProgram()
The application from which the audit event was generated.
|
String |
getCommandParam()
List of bind variables associated with the command text.
|
String |
getCommandText()
The SQL associated with the audit event.
|
String |
getCompartmentId()
The OCID of the compartment containing the audit event.
|
AuditEventSummary.DatabaseType |
getDatabaseType()
The type of the target database that was audited.
|
String |
getDbUserName()
Name of the database user whose actions were audited.
|
Map<String,Map<String,Object>> |
getDefinedTags()
Defined tags for this resource.
|
String |
getErrorCode()
Oracle Error code generated by the action.
|
String |
getErrorMessage()
Detailed message on why the Error occurred.
|
String |
getEventName()
Name of the detail action executed by the user on the target database.
|
String |
getExtendedEventAttributes()
List of all other attributes of the audit event seperated by a colon other than the one
returned in audit record.
|
Map<String,String> |
getFreeformTags()
Free-form tags for this resource.
|
String |
getId()
The OCID of the audit event.
|
Boolean |
getIsAlerted()
Indicates whether an alert was raised for this audit event.
|
String |
getObjectName()
Name of the object affected by the action.
|
String |
getObjectOwner()
Schema name of object affected but the action.
|
String |
getObjectType()
Type of object in the source database affected by the action.
|
String |
getOperation()
Name of the action executed by the user on the target database.
|
AuditEventSummary.OperationStatus |
getOperationStatus()
Indicates whether the operation was a success or a failure.
|
String |
getOsTerminal()
The operating system terminal of the user session.
|
String |
getOsUserName()
Name of the operating system user for the database session.
|
AuditEventSummary.TargetClass |
getTargetClass()
Class of the target that was audited.
|
String |
getTargetId()
The OCID of the target database that was audited.
|
String |
getTargetName()
The name of the target database that was audited.
|
Date |
getTimeCollected()
Timestamp when this audit event was collected from the target database by Data Safe.
|
int |
hashCode() |
AuditEventSummary.Builder |
toBuilder() |
String |
toString() |
String |
toString(boolean includeByteArrayContents)
Return a string representation of the object.
|
markPropertyAsExplicitlySet, wasPropertyExplicitlySet
@Deprecated @ConstructorProperties(value={"id","compartmentId","dbUserName","targetId","targetName","databaseType","targetClass","auditEventTime","timeCollected","osUserName","operation","operationStatus","eventName","errorCode","errorMessage","objectType","objectName","objectOwner","clientHostname","clientIp","auditTrailId","isAlerted","actionTaken","clientProgram","commandText","commandParam","extendedEventAttributes","auditLocation","osTerminal","clientId","auditPolicies","auditType","freeformTags","definedTags"}) public AuditEventSummary(String id, String compartmentId, String dbUserName, String targetId, String targetName, AuditEventSummary.DatabaseType databaseType, AuditEventSummary.TargetClass targetClass, Date auditEventTime, Date timeCollected, String osUserName, String operation, AuditEventSummary.OperationStatus operationStatus, String eventName, String errorCode, String errorMessage, String objectType, String objectName, String objectOwner, String clientHostname, String clientIp, String auditTrailId, Boolean isAlerted, String actionTaken, String clientProgram, String commandText, String commandParam, String extendedEventAttributes, AuditEventSummary.AuditLocation auditLocation, String osTerminal, String clientId, String auditPolicies, AuditEventSummary.AuditType auditType, Map<String,String> freeformTags, Map<String,Map<String,Object>> definedTags)
public static AuditEventSummary.Builder builder()
Create a new builder.
public AuditEventSummary.Builder toBuilder()
public String getId()
The OCID of the audit event.
public String getCompartmentId()
The OCID of the compartment containing the audit event. This is the same audited target database resource comparment.
public String getDbUserName()
Name of the database user whose actions were audited.
public String getTargetId()
The OCID of the target database that was audited.
public String getTargetName()
The name of the target database that was audited.
public AuditEventSummary.DatabaseType getDatabaseType()
The type of the target database that was audited. Allowed values are - DATABASE_CLOUD_SERVICE
public AuditEventSummary.TargetClass getTargetClass()
Class of the target that was audited.
public Date getAuditEventTime()
Time of audit event occurrence in the target database.
public Date getTimeCollected()
Timestamp when this audit event was collected from the target database by Data Safe.
public String getOsUserName()
Name of the operating system user for the database session.
public String getOperation()
Name of the action executed by the user on the target database. i.e ALTER, CREATE, DROP.
public AuditEventSummary.OperationStatus getOperationStatus()
Indicates whether the operation was a success or a failure.
public String getEventName()
Name of the detail action executed by the user on the target database. i.e ALTER SEQUENCE, CREATE TRIGGER, CREATE INDEX.
public String getErrorCode()
Oracle Error code generated by the action. Zero indicates the action was successful.
public String getErrorMessage()
Detailed message on why the Error occurred.
public String getObjectType()
Type of object in the source database affected by the action. i.e PL/SQL, SYNONYM, PACKAGE BODY.
public String getObjectName()
Name of the object affected by the action.
public String getObjectOwner()
Schema name of object affected but the action.
public String getClientHostname()
Name of the host machine from which the session was spawned.
public String getClientIp()
IP address of the host from which the session was spawned.
public String getAuditTrailId()
The OCID of the audit trail that generated this audit event. To be noted, this field has been deprecated.
public Boolean getIsAlerted()
Indicates whether an alert was raised for this audit event.
public String getActionTaken()
The action taken for this audit event.
public String getClientProgram()
The application from which the audit event was generated. Examples SQL Plus or SQL Developer.
public String getCommandText()
The SQL associated with the audit event.
public String getCommandParam()
List of bind variables associated with the command text.
public String getExtendedEventAttributes()
List of all other attributes of the audit event seperated by a colon other than the one returned in audit record.
public AuditEventSummary.AuditLocation getAuditLocation()
The location of the audit. Currently the value is audit table.
public String getOsTerminal()
The operating system terminal of the user session.
public String getClientId()
The client identifier in each Oracle session.
public String getAuditPolicies()
Comma-seperated list of audit policies that caused the current audit event.
public AuditEventSummary.AuditType getAuditType()
Type of auditing.
public Map<String,String> getFreeformTags()
Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags
Example: {"Department": "Finance"}
public Map<String,Map<String,Object>> getDefinedTags()
Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags
Example: {"Operations": {"CostCenter": "42"}}
public String toString()
toString
in class com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
public String toString(boolean includeByteArrayContents)
Return a string representation of the object.
includeByteArrayContents
- true to include the full contents of byte arrayspublic boolean equals(Object o)
equals
in class com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
public int hashCode()
hashCode
in class com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
Copyright © 2016–2023. All rights reserved.