Class DataAccessEvent
- Namespace
- Excalibur.Data.ElasticSearch.Security
- Assembly
- Excalibur.Data.ElasticSearch.dll
Represents a data access event for security auditing purposes.
public sealed class DataAccessEvent
- Inheritance
-
DataAccessEvent
- Inherited Members
Remarks
Initializes a new instance of the DataAccessEvent class.
Constructors
DataAccessEvent(string, DateTimeOffset, string, DataAccessOperation, string, string)
Represents a data access event for security auditing purposes.
public DataAccessEvent(string eventId, DateTimeOffset timestamp, string userId, DataAccessOperation operation, string resourceType, string resourceId)
Parameters
eventIdstringThe unique identifier for this data access event.
timestampDateTimeOffsetThe timestamp when the data access event occurred.
userIdstringThe identifier of the user accessing the data.
operationDataAccessOperationThe type of data access operation performed.
resourceTypestringThe type of resource being accessed.
resourceIdstringThe identifier of the specific resource accessed.
Remarks
Initializes a new instance of the DataAccessEvent class.
Properties
Context
Gets additional context information about the data access event.
public IReadOnlyDictionary<string, object>? Context { get; init; }
Property Value
- IReadOnlyDictionary<string, object>
Additional context information about the data access event.
DataClassification
Gets the data sensitivity classification level.
public string? DataClassification { get; init; }
Property Value
- string
The data sensitivity classification level.
DataSize
Gets the amount of data accessed or modified.
public long? DataSize { get; init; }
Property Value
- long?
The amount of data accessed or modified.
EventId
Gets the unique identifier for this data access event.
public string EventId { get; }
Property Value
- string
The unique identifier for this data access event.
FailureReason
Gets the reason for data access failure, if applicable.
public string? FailureReason { get; init; }
Property Value
- string
The reason for data access failure, if applicable.
Id
Gets the unique identifier for this data access event (alias for EventId).
public string Id { get; }
Property Value
- string
The unique identifier for this data access event.
IpAddress
Gets the IP address from which the data access originated.
public string? IpAddress { get; init; }
Property Value
- string
The IP address from which the data access originated.
IsSuccessful
Gets a value indicating whether the data access was successful.
public bool IsSuccessful { get; init; }
Property Value
- bool
A value indicating whether the data access was successful.
Operation
Gets the type of data access operation performed.
public DataAccessOperation Operation { get; }
Property Value
- DataAccessOperation
The type of data access operation performed.
ResourceId
Gets the identifier of the specific resource accessed.
public string ResourceId { get; }
Property Value
- string
The identifier of the specific resource accessed.
ResourcePath
Gets the full resource path being accessed (alias for ResourceId).
public string ResourcePath { get; }
Property Value
- string
The full resource path being accessed.
ResourceType
Gets the type of resource being accessed.
public string ResourceType { get; }
Property Value
- string
The type of resource being accessed.
SourceApplication
Gets the application or service that initiated the data access.
public string? SourceApplication { get; init; }
Property Value
- string
The application or service that initiated the data access.
Timestamp
Gets the timestamp when the data access event occurred.
public DateTimeOffset Timestamp { get; }
Property Value
- DateTimeOffset
The timestamp when the data access event occurred.
UserId
Gets the identifier of the user accessing the data.
public string UserId { get; }
Property Value
- string
The identifier of the user accessing the data.