Show TOC Start of Content Area

Procedure documentation Creating the Transaction Frequency Frequency Monitor  Locate the document in its SAP Library structure

Procedure

...

       1.      BankMBean:

public int getTransactionFrequency();

 

       2.      Bank:

public int getTransactionFrequency() {

   return (int) transaction.getTotalTransactionNumber();

}

 

       3.      Modify the monitor-configuration.xml:

                            a.      Define the monitor-semantics:

<frequency-configuration-group name="TransactionFrequency" unit="transactions">

    <description ID="Transaction frequency">Frequency of the client transaction.</description>

    <data-collection>

        <polled-by-monitor period="1" unit="MINUTE"/>

    </data-collection>

   <thresholds green-to-yellow="18" yellow-to-red="65" red-to-yellow="65" yellow-to-green="18"/>

</frequency-configuration-group>

 

                            b.      Define the monitor-tree:

<frequency-monitor name="Transaction frequency" configuration-group="TransactionFrequency">

    <monitored-resource name="BankMBean" type="APPLICATION"/>

    <frequency-attribute-mapping>

        <reported-events-attribute>

     <observed-resource-attribute name="TransactionFrequency"/>

       </reported-events-attribute>

  </frequency-attribute-mapping>

</frequency-monitor>

 

The monitoring framework expects an integer value for frequency monitors, that is why the return value of the getTransactionFrequency() method is integer. This method is declared in the BankMBean interface and is implemented in the class Bank. In the monitor-semantics part of the monitor-configuration.xml a frequesncy-configuration-group is declared with name TransactionFrequency, which is used for creating the node in the monitor tree (the monitor-tree part in the XML). The ID in the Transaction frequency description is the name of the monitor shown in the tree.

Result

The Transaction Frequency monitor appears in the monitoring tree under Applications Bank Information General Information.

 

 

End of Content Area