|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.jakewharton.apibuilder.ApiBuilder com.jakewharton.pingdom.PingdomApiBuilder<Check> com.jakewharton.pingdom.services.CheckService.CreateBuilder
public static final class CheckService.CreateBuilder
Request builder for
CheckService.create(String, String, CheckType)
.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class com.jakewharton.pingdom.PingdomApiBuilder |
---|
PingdomApiBuilder.HttpMethod |
Field Summary |
---|
Fields inherited from class com.jakewharton.apibuilder.ApiBuilder |
---|
API_URL_PLACEHOLDER_END, API_URL_PLACEHOLDER_START |
Method Summary | |
---|---|
CheckService.CreateBuilder |
contactIds(List<Integer> list)
Contact identifiers. |
protected com.google.gson.JsonElement |
execute()
Execute the remote API method and return the JSON object result. |
CheckService.CreateBuilder |
notifyAgainEvery(int count)
Notify again every n result. |
CheckService.CreateBuilder |
notifyWhenBackUp(boolean value)
Notify when back up again. |
CheckService.CreateBuilder |
paused(boolean value)
Paused. |
CheckService.CreateBuilder |
resolution(int minutes)
Check resolution. |
CheckService.CreateBuilder |
sendNotificationWhenDown(int count)
Send notification when down n times. |
CheckService.CreateBuilder |
sendToEmail(boolean value)
Send alerts as email. |
CheckService.CreateBuilder |
sendToIPhone(boolean value)
Send alerts to iPhone. |
CheckService.CreateBuilder |
sendToSms(boolean value)
Send alerts as SMS. |
CheckService.CreateBuilder |
sendToTwitter(boolean value)
Send alerts through Twitter. |
Methods inherited from class com.jakewharton.pingdom.PingdomApiBuilder |
---|
field, fire, parameter, parameter, parameter, parameter, postParameter, postParameter, postParameter, postParameter, postParameter |
Methods inherited from class com.jakewharton.apibuilder.ApiBuilder |
---|
buildUrl, buildUrl, encodeUrl, field, field, field, field, field, hasField, hasParameter, parameter, parameter, parameter, parameter |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
protected com.google.gson.JsonElement execute()
PingdomApiBuilder
Execute the remote API method and return the JSON object result.
This method can be overridden to select a specific subset of the JSON object. The overriding implementation should still call 'super.execute()' and then perform the filtering from there.
execute
in class PingdomApiBuilder<Check>
public CheckService.CreateBuilder paused(boolean value)
value
- Value.
public CheckService.CreateBuilder resolution(int minutes)
minutes
- Value (in minutes).
public CheckService.CreateBuilder contactIds(List<Integer> list)
list
- List of integers.
public CheckService.CreateBuilder sendToEmail(boolean value)
value
- Value.
public CheckService.CreateBuilder sendToSms(boolean value)
value
- Value.
public CheckService.CreateBuilder sendToTwitter(boolean value)
value
- Value.
public CheckService.CreateBuilder sendToIPhone(boolean value)
value
- Value.
public CheckService.CreateBuilder sendNotificationWhenDown(int count)
count
- Count.
public CheckService.CreateBuilder notifyAgainEvery(int count)
count
- Count.
public CheckService.CreateBuilder notifyWhenBackUp(boolean value)
value
- Value.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |