public class Incident extends Event
Event.EventType
Constructor and Description |
---|
Incident(SFSession session,
Throwable exc,
String jobId,
String requestId)
Submit an exception to GS from a Throwable, this is the only constructor that should be used to
report incidents
|
Incident(String serverUrl,
String sessionToken,
HttpClientSettingsKey key,
Throwable exc,
String jobId,
String requestId)
Submit an exception to GS from a Throwable, this is the only constructor that should be used to
report incidents
|
Modifier and Type | Method and Description |
---|---|
void |
flush()
Sends incident to GS to log
|
getMessage, getType, setMessage, setType, writeEventDumpLine
public Incident(SFSession session, Throwable exc, String jobId, String requestId)
exc
- a Throwable we want to reportjobId
- job id StringrequestId
- request id stringpublic Incident(String serverUrl, String sessionToken, HttpClientSettingsKey key, Throwable exc, String jobId, String requestId)
serverUrl
- GS's urlsessionToken
- GS's session tokenkey
- OCSP mode and proxy settingsexc
- an Throwable we want to reportjobId
- job id StringrequestId
- request id stringCopyright © 2022. All rights reserved.