# Interface AuditLogEntry

Represents a single audited operation and its contextual metadata.

Designed for serialisation to append-only log sinks.

interface AuditLogEntry {
action: string;
timestamp: Date;
clientId?: string;
duration?: number;
ipAddress?: string;
params?: Record<string, unknown>;
result?: { success: boolean; count?: number; error?: string };
userId?: string;
}

- Defined in utils/auditSink.ts:27

##### Index

### Properties

action
timestamp
clientId?
duration?
ipAddress?
params?
result?
userId?

## Properties

### action

action: string

Action performed (e.g. `'get_meps'`, `'tool_call'`)

- Defined in utils/auditSink.ts:31

### timestamp

timestamp: Date

Timestamp of the event

- Defined in utils/auditSink.ts:29

### `Optional` clientId

clientId?: string

Client identifier

- Defined in utils/auditSink.ts:45

### `Optional` duration

duration?: number

Wall-clock duration of the operation in milliseconds

- Defined in utils/auditSink.ts:41

### `Optional` ipAddress

ipAddress?: string

IP address (for security monitoring)

- Defined in utils/auditSink.ts:47

### `Optional` params

params?: Record<string, unknown>

Sanitised parameters used in the action

- Defined in utils/auditSink.ts:33

### `Optional` result

result?: { success: boolean; count?: number; error?: string }

Outcome metadata

- Defined in utils/auditSink.ts:35

### `Optional` userId

userId?: string

User identifier (if authenticated)

- Defined in utils/auditSink.ts:43