9.7 Example: Custom Properties from Alarm Fields

The following HierarchyFile example uses a group statement to first create a parent element named Source and populates it with alarms having a count alarm field with a value of greater than 0. Then it creates a Custom Properties property page with a list of properties whose values are computed using the Count and Counter alarm fields.

<?xml version="1.0" standalone="no"?>
<!DOCTYPE hierarchy PUBLIC "-//NetIQ, Inc.//DTD hierarchy 2.0//EN" "http://www.ManagedObjects.com/dtds/hierarchy_2.0.dtd">

<hierarchy case="yes">
    <group name="Source" class="Source" affected="yes">
        <filter operator="and" invert="false">
            <field name="count" operator="less_or_equals" value="0" case="no" invert="false" /> 
         </filter>
         <properties name="Custom Property Pages">
            <page name="Custom Properties">
               <property name="countHIGHEST" field="count" function="HIGHEST" computeGetOn="false" /> 
               <property name="countLOWEST" field="count" function="LOWEST" computeGetOn="false" /> 
               <property name="countFIRST" field="count" function="FIRST" computeGetOn="false" /> 
               <property name="countLAST" field="count" function="LAST" computeGetOn="false" /> 
               <property name="countSUM" field="count" function="SUM" computeGetOn="false" /> 
               <property name="countAVG" field="count" function="AVG" computeGetOn="false" /> 
               <property name="countMIN" field="count" function="MIN" computeGetOn="false" /> 
               <property name="countMAX" field="count" function="MAX" computeGetOn="false" /> 
               <property name="counterHIGHEST" field="counter" function="HIGHEST" computeGetOn="false" /> 
               <property name="counterLOWEST" field="counter" function="LOWEST" computeGetOn="false" /> 
               <property name="counterFIRST" field="counter" function="FIRST" computeGetOn="false" /> 
               <property name="counterLAST" field="counter" function="LAST" computeGetOn="false" /> 
               <property name="counterSUM" field="counter" function="SUM" computeGetOn="false" /> 
               <property name="counterAVG" field="counter" function="AVG" computeGetOn="false" /> 
               <property name="counterMIN" field="counter" function="MIN" computeGetOn="false" /> 
               <property name="counterMAX" field="counter" function="MAX" computeGetOn="false" /> 
             </page>
          </properties>
       </group>
  </hierarchy>