6.1 Operations Center Alarms

An Operations Center alarm has a number of functions associated with it, in addition to the properties that are exposed from either the underlying management system or Operations Center itself. To access a list of properties or fields published by the underlying data source to the alarm, use the properties property of the alarm. For example:

// Print out all the alarm’s of the elements tree
var al = element.alarms;

formula.log.info("Alarm count: " + al.length);
for (var i = 0; i < al.length; ++i ) {
    formula.log.info( 'Alarm properties of: ' + al[i] )
    for (var p in al[i].properties) {
      formula.log.info( '   ' + p + ': ' + al[i][p] )
    }
}