-
public class EventsResult
Metrics events send method result
-
-
Field Summary
Fields Modifier and Type Field Description public String
message
public BacktraceResultStatus
status
private EventsPayload
eventsPayload
private int
statusCode
-
Constructor Summary
Constructors Constructor Description EventsResult(EventsPayload payload, String message, BacktraceResultStatus status, int statusCode)
Create new instance of BacktraceResult
-
Method Summary
Modifier and Type Method Description EventsPayload
getEventsPayload()
void
setEventsPayload(EventsPayload eventsPayload)
int
getStatusCode()
void
setStatusCode(int statusCode)
Set the HTTP status code static EventsResult
OnError(EventsPayload payload, Exception exception, int statusCode)
Set result when error occurs while sending data to API -
-
Constructor Detail
-
EventsResult
EventsResult(EventsPayload payload, String message, BacktraceResultStatus status, int statusCode)
Create new instance of BacktraceResult- Parameters:
payload
- metrics events payloadmessage
- messagestatus
- result status eg.statusCode
- HTTP status code
-
-
Method Detail
-
getEventsPayload
EventsPayload getEventsPayload()
-
setEventsPayload
void setEventsPayload(EventsPayload eventsPayload)
-
getStatusCode
int getStatusCode()
-
setStatusCode
void setStatusCode(int statusCode)
Set the HTTP status code
- Parameters:
statusCode
- HTTP status code to set
-
OnError
static EventsResult OnError(EventsPayload payload, Exception exception, int statusCode)
Set result when error occurs while sending data to API
- Parameters:
payload
- submitted payloadexception
- current exception
-
-
-
-