AMTrigger.Source

Related Topics

Syntax

%AMTrigger.Source%

Trigger/Condition Supported

Database

Type

String

Description

Returns the database event source that activated the trigger. This value varies depending on the type of database being monitored:

Database Description
SQL If monitoring a SQL database, the return value indicates the source that initially activated the trigger, such as a change to the query data or the database’s state.
ORACLE If monitoring an Oracle database, the return value can be an enumeration related to the database event source. For example, if a table has been altered and a new row has been inserted into the same table, this property is set to either Object or Data. Below lists other possible return values:
    • Data - Specifies data- related events (for example, Insert, Delete, Update).
    • Database - Specifies database-related events (for example, Shutdown, Startup, Shutdown_Any, Dropped).
    • Object - Specifies object- related events (for example, Altered, Dropped).
    • Subscription - Specifies subscription-related events (for example, subscription end).

Example

This example displays the message "The database that was monitored to activate the trigger - %AMTrigger.Source%" in a dialog box.

Copy
<AMSHOWDIALOG WINDOWTITLE="Database Trigger Return Value">The database that was monitored to activate the trigger - %AMTrigger.Source%</AMSHOWDIALOG>