UptimeRobotApi class.
package | WP-API-Libraries\WP-UptimeRobot-API |
---|
__construct(string $api_key, string $format= 'json'
, integer $callback= null
)
string
API key to the account.
string
XML or JSON.
integer
If specified, returns json wrapped in a callback with the name passed in.
alert_type_tostring(Int $type) : String
Int
Alert type ID.
String
Alert type String (SMS|E-mail|Twitter DM|Boxcar|Web-Hook|Pushbullet|Zapier|Pushover|HipChat|Slack).delete_alert_contact(array $args = array()
) : array
api |
---|
array
Arguments for deleteAlertContact request.
array
Request results.delete_monitor(integer $monitor_id) : array
api |
---|
integer
ID of monitor.
array
Request results.delete_mwindow(array $args = array()
) : array
api |
---|
array
Arguments for deleteMWindow request.
array
Request results.delete_psp(array $args = array()
) : array
api |
---|
array
Arguments for deletePSP request.
array
Request results.edit_alert_contact(array $args = array()
) : array
api |
---|
array
Arguments for editAlertContact request.
array
Request results.edit_monitor(array $args) : array
Important: The type of a monitor can not be edited (like changing a HTTP monitor into a Port monitor). For such cases, deleting the monitor and re-creating a new one is adviced.
api |
---|
array
Array of arguments to send into get_monitors.
array
Array of monitor info.edit_mwindow(array $args = array()
) : array
api |
---|
array
Arguments for editMWindow request.
array
Request results.edit_psp(array $args = array()
) : array
api |
---|
array
Arguments for editPSP request.
array
Request results.get_account_details() : array
api |
---|
array
Request results.get_alert_contacts(array $args = array()
) : array
api |
---|
array
Arguments for getAlertContacts request.
array
Request results.get_monitors(array $args = array()
) : array
api |
---|
array
Array of arguments to send into get_monitors.
array
Array of monitor info.get_mwindows(array $args = array()
) : array
api |
---|
array
Arguments for getMWindows request.
array
Request results.get_psps(array $args = array()
) : array
api |
---|
array
Arguments for getPSPs request.
array
Request results.new_alert_contact(array $args = array()
) : array
The alert contacts created using the API are validated with the same way as they were created from uptimerobot.com (activation link for e-mails, etc.).
api |
---|
array
Arguments for newAlertContact request.
array
Request results.new_monitor(array $args) : array
api |
---|
array
Args to be sent into newMonitor request.
array
Request results.new_mwindow(array $args = array()
) : array
api |
---|
array
Arguments for newMWindows request.
array
Request results.new_psp(array $args = array()
) : array
api |
---|
array
Arguments for newPSP request.
array
Request results.response_code_msg(string $code = ''
) : string
api |
---|
string
Response code to get message from.
string
Message corresponding to response code sent in.status_tostring(integer $status) : string
integer
Status ID to convert.
string
Status in string format ( Up|Down|Seems Down|Paused|Not Checked Yet|Not a Valid Status )fetch(string $request) : mixed
string
Request URL.
mixed
Request results.get_implode(array|string $var) : string
array
string
Array to be imploded or a string to be sent back.
string
Imploded string.$api_key : string
$args : array
array()
$base_uri : string
'https://api.uptimerobot.com/v2'
$callback : integer
$format : string