|
You can also use the original QueryAuditHistory service. However, that service will be deprecated a future release of ThingWorx Platform. If you prefer to use it, refer to the topic, Searching Audit Data (Queries, Data Table) for details.
|
Parameter
|
Description
|
Default Value
|
||
---|---|---|---|---|
maxItems
|
The maximum number of results to return from the query. (INTEGER)
|
500 items
|
||
locale
|
The abbreviation of the language name in which to return the results. (STRING). For example, fr for French or zh_CN for Chinese (China). For a list of locales supported by ThingWorx, refer to Supported Locales below.
|
The locale of the logged-in user submitting the query
|
||
startDate
|
A date and time. The query begins looking up audit messages, starting from the date and time you specify here. (DATETIME)
|
Unspecified
|
||
endDate
|
A date and time. The query stops looking up audit messages when the date/time of the messages reaches the date and time you specify here. (DATETIME)
|
Unspecified
|
||
query
|
A query string (in JSON format). An example of a JSON query that you can use follows this table.
This parameter is used in several ThingWorx services. For complete details, refer to Query Parameter for Query Services.
|
N/A
|
Parameter Name
|
Description
|
---|---|
maxItems
|
The maximum number of items to return. The base type of this parameter is NUMBER.
|
startDate
|
The earliest audit date to query. The base type of this parameter is DATETIME.
|
endDate
|
The latest audit date to query. The base type of this parameter is DATETIME.
|
query
|
The query definition. The base type of this parameter is QUERY. Format the query as JSON object..
|
locale
|
The localizationTable locale that is used to localize the results. The base type of this parameter is STRING.
|
User
|
Group Membership
|
Expected Result
|
---|---|---|
Administrator
|
Administrators
|
Returned InfoTable contains all audit entries related to ExampleThing.
|
User_A
|
Auditors
|
Returned InfoTable contains all audit entries related to ExampleThing.
|
User_B
|
No special gropus
|
Returned InfoTable contains audit entries associated withUser_B only.
|
|
It is recommended to export legacy audit data to cold storage during a maintenance window before switching to Direct Persistence. Where this is not always possible, the rest of this section offers helpful workarounds.
|
|
Data Tags for Audit entries are always empty.
|
|
Pagination is not supported with the Data Table query services.
|
|
This service returns raw (untranslated) auditing records, along with audit entry information. For information about translation, refer to the next section.
|