Smart Plug-in for WebLogic Server User's Guide

Chapter 5: WebLogic Server SPI User Defined Metrics
Introduction to User Defined Metrics
5-7
The Calculation element is used when the data source of the metric is a
calculation using other defined metrics. The Calculation element contains a
Formula element whose content is a string that specifies the mathematical
manipulation of other metric values to obtain the final metric value. The metrics
are referred to in the calculation expression by their metric ID.
<!ELEMENT Calculation (FromVersion?, ToVersion?,Formula)>
<!ELEMENT Formula (#PCDATA)>
See the section “Metric Calculations” for more information on the correct syntax
for the contents of the Formula element.
operator "initialSubString"
"finalSubString"
"anySubString"
"match"
"gt"
"geq"
"lt"
"leq"
"eq"
yes no default Specifies the filter to
apply.
"initialSubString",
"finalSubString",
"anySubString", and
"match" can be used
with MBean attributes
that return text values.
"gt", "geq", "lt",
"leq", "eq" can be
used for MBean
attributes that return
numeric values. See
the JMX
documentation for
more information
about filtering
MBeans.
value text or number yes no default Specifies the value to
compare. The metric
definition creator is
responsible for
making sure the value
data type matches the
data type of the
correspondingMBean
attribute.
Attribute Possible
Values
Required Default Description