public abstract class PagerDuty extends Object
| Constructor and Description |
|---|
PagerDuty() |
| Modifier and Type | Method and Description |
|---|---|
static PagerDuty |
create(String apiKey)
Create a new instance using the specified API key.
|
static PagerDuty |
create(String apiKey,
retrofit.RestAdapter restAdapter)
Create a new instance using the specified API key and configured
RestAdapter. |
abstract NotifyResult |
notify(Resolution resolution)
Send an incident resolution notification to PagerDuty.
|
abstract NotifyResult |
notify(Trigger trigger)
Send an incident trigger notification to PagerDuty.
|
public static final String HOST
public static PagerDuty create(String apiKey)
public static PagerDuty create(String apiKey, retrofit.RestAdapter restAdapter)
RestAdapter.public abstract NotifyResult notify(Trigger trigger)
public abstract NotifyResult notify(Resolution resolution)
Copyright © 2014 Square, Inc.. All Rights Reserved.