Class ApmMetric


  • public class ApmMetric
    extends Object
    A APM metric definition.
    Since:
    12.4.0
    Version:
    $Revision: 23904 $ $Date: 2020-06-16 12:23:44 -0300 (Tue, 16 Jun 2020) $
    • Method Detail

      • getId

        public String getId()
        Returns this metric's identifier.
        Returns:
        the identifier.
        Since:
        12.4.0
      • isEnabled

        public boolean isEnabled()
        Returns whether this metric is enabled for being collected.
        Returns:
        true if it is enabled for being collected, or false if it is disabled for being collected.
        Since:
        12.4.0
      • setEnabled

        public void setEnabled​(boolean enabled)
        Sets whether this metric is enabled for being collected.
        Parameters:
        enabled - true to enable for being collected, or false to disable it for being collected.
        Since:
        12.4.0
      • getObjectName

        public String getObjectName()
        Returns the JMX object name used to obtain the value for this metric.
        Returns:
        the JMX object name.
        Since:
        12.4.0
      • getAttributeName

        public String getAttributeName()
        Returns the JMX attribute name used to obtain the value for this metric.
        Returns:
        the JMX attribute name.
        Since:
        12.4.0
      • isLocal

        public boolean isLocal()
        Indicates if this metric is local for each server.
        Returns:
        true if this metric is local for each server or false if it is a global metric.
        Since:
        12.4.0
      • getInterval

        public int getInterval()
        Returns the interval for collecting this metric in minutes.
        Returns:
        the interval in minutes.
        Since:
        12.4.0