Package com.twilio.rest.monitor.v1
Class AlertReader
- java.lang.Object
-
- com.twilio.base.Reader<Alert>
-
- com.twilio.rest.monitor.v1.AlertReader
-
-
Constructor Summary
Constructors Constructor Description AlertReader()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Page<Alert>
firstPage(TwilioRestClient client)
Make the request to the Twilio API to perform the read.Page<Alert>
getPage(String targetUrl, TwilioRestClient client)
Retrieve the target page from the Twilio API.Page<Alert>
nextPage(Page<Alert> page, TwilioRestClient client)
Retrieve the next page from the Twilio API.Page<Alert>
previousPage(Page<Alert> page, TwilioRestClient client)
Retrieve the previous page from the Twilio API.ResourceSet<Alert>
read(TwilioRestClient client)
Make the request to the Twilio API to perform the read.AlertReader
setEndDate(org.joda.time.LocalDate endDate)
Only show Alerts on or before this date.AlertReader
setLogLevel(String logLevel)
Only show alerts for this log-level.AlertReader
setStartDate(org.joda.time.LocalDate startDate)
Only show Alerts on or after this date.
-
-
-
Method Detail
-
setLogLevel
public AlertReader setLogLevel(String logLevel)
Only show alerts for this log-level. One of 'error', 'warning', 'notice', or 'debug'..- Parameters:
logLevel
- Only show alerts for this log-level.- Returns:
- this
-
setStartDate
public AlertReader setStartDate(org.joda.time.LocalDate startDate)
Only show Alerts on or after this date. Useful in combination with `EndDate` to define a date-range of Alerts. Input is a [UTC ISO 8601 Timestamp](http://en.wikipedia.org/wiki/ISO_8601#UTC), but time of day is ignored by the filter. Queries for Alerts older than 30 days are not supported..- Parameters:
startDate
- Only show Alerts on or after this date.- Returns:
- this
-
setEndDate
public AlertReader setEndDate(org.joda.time.LocalDate endDate)
Only show Alerts on or before this date. Useful in combination with `StartDate` to define a date-range of Alerts. Input is a [UTC ISO 8601 Timestamp](http://en.wikipedia.org/wiki/ISO_8601#UTC), but time of day is ignored by the filter. Queries for Alerts older than 30 days are not supported..- Parameters:
endDate
- Only show Alerts on or before this date.- Returns:
- this
-
read
public ResourceSet<Alert> read(TwilioRestClient client)
Make the request to the Twilio API to perform the read.
-
firstPage
public Page<Alert> firstPage(TwilioRestClient client)
Make the request to the Twilio API to perform the read.
-
getPage
public Page<Alert> getPage(String targetUrl, TwilioRestClient client)
Retrieve the target page from the Twilio API.
-
nextPage
public Page<Alert> nextPage(Page<Alert> page, TwilioRestClient client)
Retrieve the next page from the Twilio API.
-
previousPage
public Page<Alert> previousPage(Page<Alert> page, TwilioRestClient client)
Retrieve the previous page from the Twilio API.- Specified by:
previousPage
in classReader<Alert>
- Parameters:
page
- current pageclient
- TwilioRestClient with which to make the request- Returns:
- Previous Page
-
-