AuditSorting
A sort directive in an audit query request, specifying a field to sort by and the direction.
Declaration
object AuditSortingProperties
| Name | Type | Description |
|---|---|---|
field | string | The name of the field to sort by. Common values: |
order | AuditSortOrder | The sort direction. See AuditSortOrder. Defaults to |
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"
}