class PagerDuty extends ServiceImpl implements CrashReportingService
| Modifier and Type | Class and Description |
|---|---|
(package private) class |
PagerDuty.PagerDutyEvent
Object that will be POSTed to PagerDuty as JSON.
|
(package private) static interface |
PagerDuty.PagerDutyService
Retrofit service
|
| Modifier and Type | Field and Description |
|---|---|
protected java.lang.String |
apiKey |
protected PagerDuty.PagerDutyService |
pagerDutyService |
context, utils| Constructor and Description |
|---|
PagerDuty(android.content.Context context) |
| Modifier and Type | Method and Description |
|---|---|
(package private) PagerDuty.PagerDutyEvent |
createEvent(StoredException storedException)
Convert a StoredException object to a PagerDutyEvent object that can be POSTed to PagerDuty.
|
(package private) PagerDuty.PagerDutyService |
createService()
Lazy load instance of
PagerDuty.PagerDutyService |
void |
enable(java.lang.String apiKey)
Enable this service.
|
ServiceType |
getServiceType()
Returns on of
ServiceType that corresponds to this service. |
boolean |
isEnabled()
This service is enabled
|
void |
logEvent(StoredException storedException,
retrofit.Callback<java.lang.Object> callback)
Send data from passed in
StoredException object to backing service. |
protected java.lang.String apiKey
protected PagerDuty.PagerDutyService pagerDutyService
public void enable(java.lang.String apiKey)
public boolean isEnabled()
public ServiceType getServiceType()
ServiceType that corresponds to this service.getServiceType in interface ServiceServiceType.public void logEvent(StoredException storedException, retrofit.Callback<java.lang.Object> callback)
StoredException object to backing service.logEvent in interface CrashReportingServicestoredException - StoredException data. Never null.callback - Retrofit callback. Use NoOpCallback if no
action is required.PagerDuty.PagerDutyService createService()
PagerDuty.PagerDutyServicePagerDuty.PagerDutyService. Never null.PagerDuty.PagerDutyEvent createEvent(StoredException storedException)
storedException - Data to convert