Oihana PHP System

AuditTrait

The enumeration of all AuditAction properties.

Tags
author

Marc Alcaraz

since
1.0.0

Table of Contents

Constants

EVENT  : string = 'event'
The audit event tag (e.g. `role.created`, `user.deleted`).
IP  : string = 'ip'
The IP address of the client that performed the action.
METHOD  : string = 'method'
The HTTP method used (POST, PATCH, PUT, DELETE).
OUTCOME  : string = 'outcome'
The machine-readable outcome of the action (e.g. `success`, `denied`, `error`).
PATH  : string = 'path'
The full request path (e.g. `/roles/42`).
RESOURCE  : string = 'resource'
The resource collection name (e.g. `roles`, `users`, `permissions`).
RESOURCE_ID  : string = 'resourceId'
The `_key` of the targeted document in the resource collection.
STATUS_CODE  : string = 'statusCode'
The HTTP status code of the response.

Constants

EVENT

The audit event tag (e.g. `role.created`, `user.deleted`).

public string EVENT = 'event'

IP

The IP address of the client that performed the action.

public string IP = 'ip'

METHOD

The HTTP method used (POST, PATCH, PUT, DELETE).

public string METHOD = 'method'

OUTCOME

The machine-readable outcome of the action (e.g. `success`, `denied`, `error`).

public string OUTCOME = 'outcome'

PATH

The full request path (e.g. `/roles/42`).

public string PATH = 'path'

RESOURCE

The resource collection name (e.g. `roles`, `users`, `permissions`).

public string RESOURCE = 'resource'

RESOURCE_ID

The `_key` of the targeted document in the resource collection.

public string RESOURCE_ID = 'resourceId'

STATUS_CODE

The HTTP status code of the response.

public string STATUS_CODE = 'statusCode'
On this page

Search results