public interface MetricAggregator
| Modifier and Type | Method and Description |
|---|---|
void |
incrementCounter(java.lang.String name)
Increment the count of the metric with the given name.
|
void |
incrementCounter(java.lang.String name,
int count)
Increment the count of the metric with the given name.
|
void |
recordMetric(java.lang.String name,
float value)
Record a metric value for the given name.
|
void |
recordResponseTimeMetric(java.lang.String name,
long millis)
Record a response time in milliseconds for the given metric name.
|
void |
recordResponseTimeMetric(java.lang.String name,
long totalTime,
long exclusiveTime,
java.util.concurrent.TimeUnit timeUnit)
Records a metric that will not be shown in the breakdown of time for a transaction, but can be displayed in a
custom dashboard.
|
void recordResponseTimeMetric(java.lang.String name,
long totalTime,
long exclusiveTime,
java.util.concurrent.TimeUnit timeUnit)
null or the empty String.name - The name of the metric.totalTime - The total time value for the metric. This is the value that custom dashboards will display
(often the average of the value).exclusiveTime - The exclusive time for this metric. This value is primarily used by the agent for
transaction blame metrics, but it is exposed here for future uses.timeUnit - The time unit of the values passed into this method.void recordMetric(java.lang.String name,
float value)
name - The name of the metric. The metric is not recorded if the name is null or the empty
String.value - The value of the metric.void recordResponseTimeMetric(java.lang.String name,
long millis)
name - The name of the metric. The response time is not recorded if the name is null or the
empty String.millis - The response time in milliseconds.void incrementCounter(java.lang.String name)
null or the empty String .name - The name of the metric to increment.void incrementCounter(java.lang.String name,
int count)
null or the empty
String.name - The name of the metric to increment.count - The amount in which the metric should be incremented.