Smart Plug-in for WebLogic Server User's Guide

5-8
Chapter 5: WebLogic Server SPI User Defined Metrics
Introduction to User Defined Metrics
More than one metric source element (MBean and/or Calculation)maybe
indicatedinaMetric element. Each metric source element is scanned for a
FromVersion or ToVersion child element to determine which metric source
element to use for the version of the application server being monitored. The
following algorithm is used for determining what application server version is
supported by each metric source element within the Metric element.
1. If a FromVersion element is not present, no lower limit exists to the server
versions supported by this metric.
2. If a FromVersion element is present, the server attribute indicates the
lowest server version supported by this metric. If an update attribute exists,
it additionally qualifies the lowest server version supported by specifying
the lowest service pack or patch supported for that version.
3. If a ToVersion element is not present, no upper limit exists to the server
versions supported by this metric.
4. If a ToVersion tag is present, the server attribute indicates the highest server
version supported by this metric. If an update attribute exists, it additionally
qualifies the server version supported by specifying the highest service pack
or patch supported for that version.
<!ELEMENT FromVersion (EMPTY)>
<!ELEMENT ToVersion (EMPTY)>
<!ATTLIST FromVersion server CDATA #REQUIRED
update CDATA "*">
<!ATTLIST ToVersion server CDATA #REQUIRED
update CDATA "*">
FromVersion and ToVersion element attributes are described in the following
table.
Attribute Type Required Default Description
server numeric
string
yes none Specifies a primary server version;
for example,
<FromVersion server=6.0"/>