Creating an audit log entry (Audit() action)

The Audit() action for Expression Rules creates an entry in the audit log.

Note: Although it works with Asset timers, the Audit action does not work when the Trigger type is a System Timer. See also System Timers and Posted Data.

Format:

Audit(String category, String message)

where:

category - the type of audit log entry to create. Be sure to enclose the category name in double quotation marks. The supported (case-sensitive) entries follow:

o        alarm-acknowledgements - the alarm was acknowledged.

o        dashboard - created, modified, or deleted dashboard layouts.

o        data-export - data values were exported from the Platform.

o        data-management - dataset archive policy was created or modified.

o        device-communication - shows all commands from the Platform to the asset and all responses from the asset to the Platform.

o        file-upload - files were uploaded successfully, file upload was cancelled, or file upload failed.

o        maintenance - added, removed, or updated maintenance Items; reset, extended, or overrode maintenance items.

o        network - network management.

o        notification - notifications were created, updated, or deleted.

o        partner-access - partner login sessions were closed, cloned, or created; contact logged in; partner was created, updated, or removed; case was modified; resolution, case was updated (for example, changed resolution, status, partner, or priority).

o        remote-access - statuses for remote sessions created using Axeda Access, such as sessions were created, ended, or abandoned; files were uploaded during sessions; new remote hosts were added to Platform; shows statuses for remote sessions (terminal, application, browser, or desktop), such as sessions were established (including AxedaDirect connections), and ended. Also shows any unknown users who attempted connections to remote desktop sessions.

o        report - reports were deleted, published, or open and run.

o        rules-configuration - audit records on the following activities: executing actions, creating new actions or rules, overriding rules; removing actions or rules.

o        scm-file-transfer - files were uploaded from asset, downloaded to asset; file downloads were initiated.

o        scm-package-management - packages were created, deployed, updated, published, or deleted.

o        scripting - reports on the following activities: enabling and disabling scripts; running scripts; updating scripts; creating new scripts; registering and unregistering scripts; stopping scripts, and so forth.

o        system-configuration - reports on the following activities: updating configurations (including model, asset, gateway, asset group assignments, timers, roles, usage items, and so forth.); restarting assets; assigning privileges to user groups; changing asset status; and so on.

o        transport-servicelink - (relates to Axeda Transport) - exported or imported asset updates; exports or imports failed.

o        update-window - update window operations.

o        user-access - shows user logins and user logouts to the Axeda® Connected Product Management Applications.

o        message - message (audit log description) to enter in the audit log.

 

Example:

The following example creates a new data-management audit log entry with the message, "Received temperature update of ‘N", where N is the value of the data item temp:

Then/Else: Audit("data-management", "Received temperature update. Value is " + str(DataItem.temp.value))

 

See Also