public class Alert extends NextGenInstanceResource<TwilioMonitorClient>
| Constructor and Description |
|---|
Alert(TwilioMonitorClient client)
Instantiates a new Alert resource.
|
Alert(TwilioMonitorClient client,
Map<String,Object> properties)
Instantiates a new Alert resource with properties returned from the Twilio API.
|
Alert(TwilioMonitorClient client,
String sid)
Instantiates a new Alert resource.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
delete()
Delete this Alert from your Twilio account's logs.
|
String |
getAccountSid()
Gets the account sid.
|
String |
getAlertText()
The text of the alert.
|
String |
getApiVersion()
The version of the Twilio API in use when this alert was generated.
|
Calendar |
getDateCreated()
The date that this resource was created.
|
Calendar |
getDateGenerated()
The date the alert was actually generated.
|
Calendar |
getDateUpdated()
The date this alert was last updated.
|
String |
getErrorCode()
A unique error code for the error condition.
|
String |
getLogLevel()
The type of alert.
|
String |
getMoreInfo()
A URL for more information about the error condition.
|
String |
getRequestMethod()
If the Alert was generated by a request Twilio made to your server,
this will be the request method used when Twilio made the request to your server.
|
String |
getRequestUrl()
If the Alert was generated by a request Twilio made to your server,
this will be the URL on your server that generated the alert.
|
String |
getRequestVariables()
Only available in the Alert instance resource.
|
String |
getResourceSid()
The unique ID of the resource for which the Alert was generated.
|
String |
getResponseBody()
Only available in the Alert instance resource.
|
String |
getResponseHeaders()
Only available in the Alert instance resource.
|
String |
getSid()
Unique ID for this Alert.
|
String |
getUrl()
URL of this Alert in the Twilio REST API.
|
getCastedObject, getObject, getProperty, toJSON, update, updatesetRequestAccountSidpublic Alert(TwilioMonitorClient client)
client - the clientpublic Alert(TwilioMonitorClient client, String sid)
client - the clientsid - the sidpublic Alert(TwilioMonitorClient client, Map<String,Object> properties)
client - the clientproperties - the propertiespublic String getSid()
public String getUrl()
public Calendar getDateCreated()
public Calendar getDateGenerated()
public Calendar getDateUpdated()
public String getAccountSid()
public String getResourceSid()
public String getApiVersion()
public String getLogLevel()
public String getErrorCode()
public String getMoreInfo()
public String getAlertText()
public String getRequestUrl()
public String getRequestMethod()
public String getRequestVariables()
public String getResponseHeaders()
public String getResponseBody()
public boolean delete()
throws TwilioRestException
TwilioRestException - the twilio rest exceptionCopyright © 2011 Twilio, Inc. All Rights Reserved.