5.5 Element Properties and the Properties Object

A Operations Center element 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 published by the underlying data source, use the properties property of the element. For example:

js> var serverElement = formula.Administration.findElement( 'formulaServer=Server' )
writeln( 'Server properties:' )
for( var p in serverElement.properties )
   writeln( '   ' + p + ': ' + serverElement[p] )
Server properties:
   Object Heap Used Memory (KB): 6684
   Adapters: 42
   Auditable:
   Formula Server Start Timestamp: 11/13/2002 at 10:37 PM EST
   Condition: OK
   Algorithm:
   Total Alarms: 0
   Formula Server Has Been Up For: 0 Days 0 Hours 12 Minutes 8 Seconds
   Element: formulaServer=Server/root=Administration
   Object Heap Free Memory (KB): 4068
   Algorithm Parameters:
   Total Element Classes: 121
   Object Heap Allocated Memory (KB): 10860
   Last Reported: Wed Nov 13 22:37:45 GMT-0500 (EST) 2002
   Sessions: 1
   Total Elements: 353
js>