Parameter
|
Description
|
Base Type
|
---|---|---|
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.
|
STRING
|
targetRepositoryName
|
The name of the file repository Thing where the output file containing localized audit entries should be stored.
|
THINGNAME
|
targetPath
|
The location to which the output file should be written.
|
STRING
|
targetFileName
|
The name of the output file in which the localized audit data should be stored.
|
STRING
|
startDate
|
The date and time of the first audit entry that you want to export. All audit entries with a timestamp after the date and time of the first exported audit entry and before the endDate are exported.
|
DATETIME
|
endDate
|
The date and time of the last audit entry that you want to export. All audit entries with a timestamp before the date and time of the last exported audit entry and after the startDate are exported.
|
DATETIME
|
query
|
A JSON-formatted query for filtering and sorting the audit data. There is no default value for this parameter. For an example, refer to the section, Example of Exporting Online Audit Data, below.
|
Start Date
|
End Date
|
Content of Export
|
---|---|---|
2020-02-03 18:50:03.000 (a specific date and time)
|
2020-02-03 19:50:03.000 (a specific date and time)
|
All of the online data from the start date to the end date, which for this example, are the same date (2020–02–03), and an hour’s worth of data (from 18:50:03.000 through 19:50:03.000.
|
null
|
2020-02-03 19:50:03.000 (a specific date and time)
|
All of the online data that is older than the end date and time (2020-02-03 19:50:03.000). With the start date set to null, the export may contain a large volume of audit data, depending on the quantity of audit messages in the database storage and the online data retention policy.
|
2020-02-03 18:50:03.000 (a specific date and time)
|
null
|
All of the online data between the start date and time and the current date and time, which is specified by setting the end date to null.
|
null
|
null
|
ALL online audit data. Not recommended, as this could take a very long time.
|
Property
|
Description
|
---|---|
auditCategory
|
The name of the category of audit message. In the example above, it is the Modeling category. For information about audit categories, see Audit Categories.
|
application
|
The name of the application that generated the audit message. For audit messages generated by the core ThingWorx Platform, the value is set to ThingworxCore.
|
sourceType
|
The type associated with the application that generated this audit message (Thing).
|
source
|
The ThingWorx application or an executable that generated this audit message. In the example, the source is ExampleThing.
|
id
|
This is a unique, auto-generated identifier for the audit entry. In this example, the id is 4164.
|
message
|
The text of the audit message.
|
user
|
The login name of the user who was running the application when the audit message was generated.
|
timestamp
|
In epoch time, the date and time that the audit message was generated.
|