Show / Hide Table of Contents

Class AuditEvent

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

Inheritance
object
AuditEvent
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: Oci.AuditService.Models
Assembly: OCI.DotNetSDK.Audit.dll
Syntax
public class AuditEvent

Properties

CloudEventsVersion

Declaration
[Required(ErrorMessage = "CloudEventsVersion is required.")]
[JsonProperty(PropertyName = "cloudEventsVersion")]
public string CloudEventsVersion { get; set; }
Property Value
Type Description
string

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

Remarks

Required

ContentType

Declaration
[Required(ErrorMessage = "ContentType is required.")]
[JsonProperty(PropertyName = "contentType")]
public string ContentType { get; set; }
Property Value
Type Description
string

The content type of the data contained in data.
Example: application/json

Remarks

Required

Data

Declaration
[Required(ErrorMessage = "Data is required.")]
[JsonProperty(PropertyName = "data")]
public Data Data { get; set; }
Property Value
Type Description
Data
Remarks

Required

EventId

Declaration
[Required(ErrorMessage = "EventId is required.")]
[JsonProperty(PropertyName = "eventId")]
public string EventId { get; set; }
Property Value
Type Description
string

The GUID of the event.

Remarks

Required

EventTime

Declaration
[Required(ErrorMessage = "EventTime is required.")]
[JsonProperty(PropertyName = "eventTime")]
public DateTime? EventTime { get; set; }
Property Value
Type Description
DateTime?

The time the event occurred, expressed in RFC 3339 timestamp format.
Example: 2019-09-18T00:10:59.252Z

Remarks

Required

EventType

Declaration
[Required(ErrorMessage = "EventType is required.")]
[JsonProperty(PropertyName = "eventType")]
public string EventType { get; set; }
Property Value
Type Description
string

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

Remarks

Required

EventTypeVersion

Declaration
[Required(ErrorMessage = "EventTypeVersion is required.")]
[JsonProperty(PropertyName = "eventTypeVersion")]
public string EventTypeVersion { get; set; }
Property Value
Type Description
string

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

Remarks

Required

Source

Declaration
[Required(ErrorMessage = "Source is required.")]
[JsonProperty(PropertyName = "source")]
public string Source { get; set; }
Property Value
Type Description
string

The source of the event.
Example: ComputeApi

Remarks

Required

In this article
Back to top