# AuditLogDTO

Audit log entry representing an API operation

## Properties

Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**accountAlias** | **string** | Account alias/name for easier identification | [optional] [readonly] [default to undefined]
**accountId** | **string** | Account ID if the operation is specific to an account | [optional] [readonly] [default to undefined]
**apiKeyAlias** | **string** | API Key alias/name for easier identification | [optional] [readonly] [default to undefined]
**apiKeyId** | **number** | API Key ID that made the request | [optional] [readonly] [default to undefined]
**durationMs** | **number** | Duration of the operation in milliseconds | [optional] [readonly] [default to undefined]
**endpoint** | **string** | API endpoint that was called | [optional] [readonly] [default to undefined]
**errorMessage** | **string** | Error message if the operation failed | [optional] [readonly] [default to undefined]
**id** | **string** | Unique identifier for the audit log entry | [optional] [readonly] [default to undefined]
**ipAddress** | **string** | Client IP address | [optional] [readonly] [default to undefined]
**method** | **string** | HTTP method used | [optional] [readonly] [default to undefined]
**projectId** | **string** | Project ID associated with this operation | [optional] [readonly] [default to undefined]
**projectName** | **string** | Project name for easier identification | [optional] [readonly] [default to undefined]
**queryString** | **string** | Query parameters if any | [optional] [readonly] [default to undefined]
**requestBody** | **string** | Request body (sanitized, passwords removed) | [optional] [readonly] [default to undefined]
**requestBodySize** | **number** | Size of request body in bytes | [optional] [readonly] [default to undefined]
**requestHeaders** | **string** | Request headers as JSON string (sensitive headers removed) | [optional] [readonly] [default to undefined]
**responseBody** | **string** | Response body (only for error responses) | [optional] [readonly] [default to undefined]
**responseBodySize** | **number** | Size of response body in bytes | [optional] [readonly] [default to undefined]
**serverHost** | **string** | Server hostname that processed the request | [optional] [readonly] [default to undefined]
**statusCode** | **number** | HTTP status code of the response | [optional] [readonly] [default to undefined]
**success** | **boolean** | Whether the operation was successful (2xx status) | [optional] [readonly] [default to undefined]
**timestamp** | **string** | Timestamp when the operation was performed | [optional] [readonly] [default to undefined]
**userAgent** | **string** | User agent string from the client | [optional] [readonly] [default to undefined]

## Example

```typescript
import { AuditLogDTO } from 'js-metacopier-api';

const instance: AuditLogDTO = {
    accountAlias,
    accountId,
    apiKeyAlias,
    apiKeyId,
    durationMs,
    endpoint,
    errorMessage,
    id,
    ipAddress,
    method,
    projectId,
    projectName,
    queryString,
    requestBody,
    requestBodySize,
    requestHeaders,
    responseBody,
    responseBodySize,
    serverHost,
    statusCode,
    success,
    timestamp,
    userAgent,
};
```

[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
