AppDynamics APM API v2.0

com.appdynamics.apm.appagent.api
Interface IMetricAndEventReporter


public interface IMetricAndEventReporter

This interface provides an API for java applications to publish metrics to appdynamics controller

Since:
1.0

Method Summary
 void publishErrorEvent(java.lang.String summaryMessage, java.util.Map<java.lang.String,java.lang.String> details, boolean critical)
          method to publish an error event
 void publishInfoEvent(java.lang.String summaryMessage, java.util.Map<java.lang.String,java.lang.String> details)
          method to publish an info event
 void reportAverageMetric(java.lang.String metricName, long metricValue)
          method to report a metric value to be averaged over a minute against the given name
 void reportObservedMetric(java.lang.String metricName, long metricValue)
          method to report a metric value not aggregated, but shown as the current value against the given name setting this value twice in a minute will result in the second value taken and the first value dropped
 void reportSumMetric(java.lang.String metricName, long metricValue)
          method to report a metric value to be summed up over a minute against the given name
 

Method Detail

reportAverageMetric

void reportAverageMetric(java.lang.String metricName,
                         long metricValue)
method to report a metric value to be averaged over a minute against the given name

Parameters:
metricName - the name of the metric
metricValue - the long value of the metric

reportSumMetric

void reportSumMetric(java.lang.String metricName,
                     long metricValue)
method to report a metric value to be summed up over a minute against the given name

Parameters:
metricName - the name of the metric
metricValue - the long value of the metric

reportObservedMetric

void reportObservedMetric(java.lang.String metricName,
                          long metricValue)
method to report a metric value not aggregated, but shown as the current value against the given name setting this value twice in a minute will result in the second value taken and the first value dropped

Parameters:
metricName - the name of the metric
metricValue - the long value of the metric

publishErrorEvent

void publishErrorEvent(java.lang.String summaryMessage,
                       java.util.Map<java.lang.String,java.lang.String> details,
                       boolean critical)
method to publish an error event

Parameters:
summaryMessage - the summary message
details - optional name value pair details for the error
critical - if the error is critical, the default level is warning

publishInfoEvent

void publishInfoEvent(java.lang.String summaryMessage,
                      java.util.Map<java.lang.String,java.lang.String> details)
method to publish an info event

Parameters:
summaryMessage - the summary message
details - optional name value pair details for the error

AppDynamics APM API v2.0

Copyright 2010 AppDynamics Inc. All rights reserved.