AuditEvent

class oci.audit.models.AuditEvent(**kwargs)

Bases: object

All the attributes of an audit event. For more information, see Viewing Audit Log Events.

Methods

__init__(**kwargs) Initializes a new AuditEvent object with values from keyword arguments.

Attributes

cloud_events_version [Required] Gets the cloud_events_version of this AuditEvent.
content_type [Required] Gets the content_type of this AuditEvent.
data [Required] Gets the data of this AuditEvent.
event_id [Required] Gets the event_id of this AuditEvent.
event_time [Required] Gets the event_time of this AuditEvent.
event_type [Required] Gets the event_type of this AuditEvent.
event_type_version [Required] Gets the event_type_version of this AuditEvent.
source [Required] Gets the source of this AuditEvent.
__init__(**kwargs)

Initializes a new AuditEvent object with values from keyword arguments. The following keyword arguments are supported (corresponding to the getters/setters of this class):

Parameters:
  • event_type (str) – The value to assign to the event_type property of this AuditEvent.
  • cloud_events_version (str) – The value to assign to the cloud_events_version property of this AuditEvent.
  • event_type_version (str) – The value to assign to the event_type_version property of this AuditEvent.
  • source (str) – The value to assign to the source property of this AuditEvent.
  • event_id (str) – The value to assign to the event_id property of this AuditEvent.
  • event_time (datetime) – The value to assign to the event_time property of this AuditEvent.
  • content_type (str) – The value to assign to the content_type property of this AuditEvent.
  • data (oci.audit.models.Data) – The value to assign to the data property of this AuditEvent.
cloud_events_version

[Required] Gets the cloud_events_version of this AuditEvent. 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

Returns:The cloud_events_version of this AuditEvent.
Return type:str
content_type

[Required] Gets the content_type of this AuditEvent. The content type of the data contained in data.

Example: application/json

Returns:The content_type of this AuditEvent.
Return type:str
data

[Required] Gets the data of this AuditEvent.

Returns:The data of this AuditEvent.
Return type:oci.audit.models.Data
event_id

[Required] Gets the event_id of this AuditEvent. The GUID of the event.

Returns:The event_id of this AuditEvent.
Return type:str
event_time

[Required] Gets the event_time of this AuditEvent. The time the event occurred, expressed in RFC 3339 timestamp format.

Example: 2019-09-18T00:10:59.252Z

Returns:The event_time of this AuditEvent.
Return type:datetime
event_type

[Required] Gets the event_type of this AuditEvent. 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

Returns:The event_type of this AuditEvent.
Return type:str
event_type_version

[Required] Gets the event_type_version of this AuditEvent. 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

Returns:The event_type_version of this AuditEvent.
Return type:str
source

[Required] Gets the source of this AuditEvent. The source of the event.

Example: ComputeApi

Returns:The source of this AuditEvent.
Return type:str