public interface DataSender
| Modifier and Type | Method and Description |
|---|---|
java.util.Map<java.lang.String,java.lang.Object> |
connect(java.util.Map<java.lang.String,java.lang.Object> startupOptions) |
java.util.List<java.util.List<?>> |
getAgentCommands() |
<T extends com.newrelic.agent.model.AnalyticsEvent & org.json.simple.JSONStreamAware> |
sendAnalyticsEvents(int reservoirSize,
int eventsSeen,
java.util.Collection<T> events)
Send non-aggregated events for analytics
|
void |
sendCommandResults(java.util.Map<java.lang.Long,java.lang.Object> commandResults) |
void |
sendCustomAnalyticsEvents(int reservoirSize,
int eventsSeen,
java.util.Collection<? extends com.newrelic.agent.model.CustomInsightsEvent> events)
Send non-aggregated custom events for analytics
|
void |
sendErrorData(java.util.List<TracedError> errors) |
void |
sendErrorEvents(int reservoirSize,
int eventsSeen,
java.util.Collection<com.newrelic.agent.model.ErrorEvent> errorEvents) |
void |
sendLogEvents(java.util.Collection<? extends com.newrelic.agent.model.LogEvent> events)
Send non-aggregated Log events
|
void |
sendMetricData(long beginTimeMillis,
long endTimeMillis,
java.util.List<MetricData> metricData)
Send metric data to New Relic.
|
void |
sendModules(java.util.List<? extends org.json.simple.JSONStreamAware> jarDataToSend) |
java.util.List<java.lang.Long> |
sendProfileData(java.util.List<ProfileData> profiles)
Send thread profiles to New Relic.
|
void |
sendSpanEvents(int reservoirSize,
int eventsSeen,
java.util.Collection<com.newrelic.agent.model.SpanEvent> events)
Send non-aggregated span events
|
void |
sendSqlTraceData(java.util.List<SqlTrace> sqlTraces) |
void |
sendTransactionTraceData(java.util.List<TransactionTrace> traces) |
void |
shutdown(long timeMillis) |
java.util.Map<java.lang.String,java.lang.Object> connect(java.util.Map<java.lang.String,java.lang.Object> startupOptions)
throws java.lang.Exception
java.lang.Exceptionjava.util.List<java.util.List<?>> getAgentCommands()
throws java.lang.Exception
java.lang.Exceptionvoid sendCommandResults(java.util.Map<java.lang.Long,java.lang.Object> commandResults)
throws java.lang.Exception
java.lang.Exceptionvoid sendErrorData(java.util.List<TracedError> errors) throws java.lang.Exception
java.lang.Exceptionvoid sendErrorEvents(int reservoirSize,
int eventsSeen,
java.util.Collection<com.newrelic.agent.model.ErrorEvent> errorEvents)
throws java.lang.Exception
java.lang.Exception<T extends com.newrelic.agent.model.AnalyticsEvent & org.json.simple.JSONStreamAware> void sendAnalyticsEvents(int reservoirSize,
int eventsSeen,
java.util.Collection<T> events)
throws java.lang.Exception
java.lang.Exceptionvoid sendCustomAnalyticsEvents(int reservoirSize,
int eventsSeen,
java.util.Collection<? extends com.newrelic.agent.model.CustomInsightsEvent> events)
throws java.lang.Exception
java.lang.Exceptionvoid sendLogEvents(java.util.Collection<? extends com.newrelic.agent.model.LogEvent> events)
throws java.lang.Exception
java.lang.Exceptionvoid sendSpanEvents(int reservoirSize,
int eventsSeen,
java.util.Collection<com.newrelic.agent.model.SpanEvent> events)
throws java.lang.Exception
java.lang.Exceptionvoid sendMetricData(long beginTimeMillis,
long endTimeMillis,
java.util.List<MetricData> metricData)
throws java.lang.Exception
beginTimeMillis - the last time metric data was sent to New RelicendTimeMillis - the time nowmetricData - the metric data to sendjava.lang.Exception - if there is a problem sending the metric datajava.util.List<java.lang.Long> sendProfileData(java.util.List<ProfileData> profiles) throws java.lang.Exception
profiles - the profiles to sendjava.lang.Exception - if there is a problem sending the profilesvoid sendSqlTraceData(java.util.List<SqlTrace> sqlTraces) throws java.lang.Exception
java.lang.Exceptionvoid sendTransactionTraceData(java.util.List<TransactionTrace> traces) throws java.lang.Exception
java.lang.Exceptionvoid sendModules(java.util.List<? extends org.json.simple.JSONStreamAware> jarDataToSend)
throws java.lang.Exception
java.lang.Exceptionvoid shutdown(long timeMillis)
throws java.lang.Exception
java.lang.Exception