public interface MetricAggregator
Modifier and Type | Method and Description |
---|---|
void |
incrementCounter(java.lang.String name)
Increment the metric counter for the given name.
|
void |
incrementCounter(java.lang.String name,
int count)
Increment the metric counter for 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 an unscoped metric.
|
void recordResponseTimeMetric(java.lang.String name, long totalTime, long exclusiveTime, java.util.concurrent.TimeUnit timeUnit)
name
- The metric nametotalTime
- The total time value. 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 methodvoid 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)
name
- The name of the metric to increment.void incrementCounter(java.lang.String name, int count)
name
- The name of the metric to increment.count
- The amount in which the metric should be incremented.