This topic provides information about the makeup of a JMX search criteria schema.

A saved MBean search criteria consists of a top-level filters element, containing at least one filter sub-element. Each filter sub-element consists of:

An id attribute containing an identifier for the search. This string will appear in the Preset Searches drop-down menu. Each search you define and save on a vCenter Hyperic server must have a unique id attribute.

An objectName sub-element, whose value is the object name pattern used for the MBean query.

An attributeRegex sublement, whose value is the Java regular expression used to filter the attributes returned from the MBean query.

An operationRegex sublement, whose value is the Java regular expression used to filter the operations returned from the MBean query.

For example:

<?xml version="1.0" encoding="UTF-8"?>

<filters>

  <filter id="JVM Memory MBean">
    <objectName>java.lang:type=Memory</objectName>
    <attributeRegex>.*Usage</attributeRegex>
    <operationRegex>.*</operationRegex>
  </filter>

  <filter id="JVM Platform MBeans">
    <objectName>java.lang:*</objectName>
    <attributeRegex>.*</attributeRegex>
    <operationRegex>.*</operationRegex>
  </filter>

</filters>