public interface TelemetryEventTracker
| Modifier and Type | Method and Description |
|---|---|
java.util.List<com.rollbar.api.payload.data.TelemetryEvent> |
dump()
Dump all the events recorded.
|
void |
recordLogEventFor(com.rollbar.api.payload.data.Level level,
com.rollbar.api.payload.data.Source source,
java.lang.String message)
Record log telemetry event.
|
void |
recordManualEventFor(com.rollbar.api.payload.data.Level level,
com.rollbar.api.payload.data.Source source,
java.lang.String message)
Record manual telemetry event.
|
void |
recordNavigationEventFor(com.rollbar.api.payload.data.Level level,
com.rollbar.api.payload.data.Source source,
java.lang.String from,
java.lang.String to)
Record navigation telemetry event with from (origin) and to (destination).
|
void |
recordNetworkEventFor(com.rollbar.api.payload.data.Level level,
com.rollbar.api.payload.data.Source source,
java.lang.String method,
java.lang.String url,
java.lang.String statusCode)
Record network telemetry event with method, url, and status code.
|
java.util.List<com.rollbar.api.payload.data.TelemetryEvent> dump()
void recordLogEventFor(com.rollbar.api.payload.data.Level level,
com.rollbar.api.payload.data.Source source,
java.lang.String message)
TelemetryType.LOG).level - the TelemetryEvent severity (e.g. Level.DEBUG).source - the Source this event is recorded from (e.g. Source.CLIENT).message - the message sent for this event (e.g. "hello world").void recordManualEventFor(com.rollbar.api.payload.data.Level level,
com.rollbar.api.payload.data.Source source,
java.lang.String message)
TelemetryType.MANUAL) .level - the TelemetryEvent severity (e.g. Level.DEBUG).source - the Source this event is recorded from (e.g. Source.CLIENT).message - the message sent for this event (e.g. "hello world").void recordNavigationEventFor(com.rollbar.api.payload.data.Level level,
com.rollbar.api.payload.data.Source source,
java.lang.String from,
java.lang.String to)
TelemetryType.NAVIGATION).level - the TelemetryEvent severity (e.g. Level.DEBUG).source - the Source this event is recorded from (e.g. Source.CLIENT).from - the starting point (e.g. "SettingView").to - the destination point (e.g. "HomeView").void recordNetworkEventFor(com.rollbar.api.payload.data.Level level,
com.rollbar.api.payload.data.Source source,
java.lang.String method,
java.lang.String url,
java.lang.String statusCode)
TelemetryType.NETWORK).level - the TelemetryEvent severity (e.g. Level.DEBUG).source - the Source this event is recorded from (e.g. Source.CLIENT).method - the verb used (e.g. "POST").url - the api url (e.g. "
http://rollbar.com/test/api").statusCode - the response status code (e.g. "404").