Contents

AuditSorting

A sort directive in an audit query request, specifying a field to sort by and the direction.

Declaration

object AuditSorting

Properties

NameTypeDescription
fieldstring

The name of the field to sort by. Common values: eventTime, entityType, eventType, userType.

orderAuditSortOrder

The sort direction. See AuditSortOrder. Defaults to DESC.

Discussion

Include one or more AuditSorting entries in the sorting array of an AuditQuery request to control the order of results. When you omit this array, the API returns results sorted by eventTime descending (most recent first).

"sorting": [
  { "field": "eventTime", "order": "DESC" }
]

The API applies multiple sort directives in order. The first directive is the primary sort. Subsequent entries break ties.

Example

{
  "field": "eventTime",
  "order": "DESC"
}

See Also