This custom object writes an alarm name to the Platform log. After typing a name and selecting the Alarm Rule type, provide your own description and then copy and paste the source code below into the Source Code box in the Create Custom Object page. This example uses the alarm.getName() attribute of the Alarm object.
Name: Alarm Logger
Type: Alarm Rule
Description: (type your own)
Source Code:
logger.info("Alarm Name " + alarm.getName() );
return true;
Parameters: none
The return code indicates that the alarm rule information was written to the log successfully. This custom object has no configured parameters.
For a list of attributes for an Alarm object, refer to Alarm Object Attributes.