Class AuditEvent
All the attributes of an audit event. For more information, see Viewing Audit Log Events.
Inherited Members
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).
|
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 |
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.
|
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.
|
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 |
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.
|
Remarks
Required