Smart Plug-in for WebLogic Server User's Guide

Chapter 5: WebLogic Server SPI User Defined Metrics
Introduction to User Defined Metrics
5-9
The following examples illustrate the use of the FromVersion and ToVersion
elements.
Example 1: Metric 10 uses metric
"mbean1" in its calculation. This calculated
metric applies to all WebLogic Server versions. However, the MBean metric on
which it is based has changed. Originally the MBean for metric 10 was
introduced on server version 6.0, service pack 1. However in version 6.1, the
attribute name changed, and this change remains the same up to the current
server version, 6.5.
<Metric id="mbean1" alarm="no">
<MBean >
<FromVersion server="6.0" update="1"/>
<ToVersion server="6.099"/>
<ObjectName>*:*,Type=ExecuteQueue</ObjectName>
<Attribute>ServicedRequestTotalCount</Attribute>
</MBean>
<MBean >
<FromVersion server="6.1"/>
<ObjectName>*:*,Type=ExecuteQueue</ObjectName>
<Attribute>ServicedRequestCount</Attribute>
</MBean>
</Metric>
<Metric id="WLSSPI_0710" alarm="yes">
<Calculation>
<Formula>
(delta(mbean1) / interval(mbean1))*1000)
</Formula>
</Calculation>
</Metric>
update numeric
string
no "*" Specifies a secondary server version,
such as "1" for service pack 1.
A "*" indicates that no secondary
version is specified.
Attribute Type Required Default Description