public class DefaultSlowQueryListener extends java.lang.Object implements SlowQueryListener
| Constructor and Description |
|---|
DefaultSlowQueryListener(java.lang.String appName,
double thresholdInMillis) |
| Modifier and Type | Method and Description |
|---|---|
java.util.List<SlowQueryInfo> |
getSlowQueries()
Return a list of all captured slow queries.
|
<T> void |
noticeTracer(Tracer tracer,
com.newrelic.api.agent.SlowQueryDatastoreParameters<T> slowQueryDatastoreParameters)
Evaluates whether or not the provided tracer is above the slow query threshold.
|
public DefaultSlowQueryListener(java.lang.String appName,
double thresholdInMillis)
public <T> void noticeTracer(Tracer tracer, com.newrelic.api.agent.SlowQueryDatastoreParameters<T> slowQueryDatastoreParameters)
SlowQueryListenernoticeTracer in interface SlowQueryListenertracer - the tracer to use when checking durations and storing query informationslowQueryDatastoreParameters - contains the slow query parameters (if present) for recording slow queriespublic java.util.List<SlowQueryInfo> getSlowQueries()
SlowQueryListenergetSlowQueries in interface SlowQueryListener