Entering content frame

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

Procedure

...

       1.      BankMBean

public int getTransactionFrequency();

 

       2.      Bank

public int getTransactionFrequency() {

   return (int) transaction.getTotalTransactionNumber();

}

 

       3.      monitor-configuration.xml

                            a.      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.      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

Representation in the monitoring tree (Visual Administrator):

This graphic is explained in the accompanying text

 

The next step is to create a quality-rate monitor named “Transactions Over 10,000 EUR”

 

Leaving content frame