示例#1
0
 /**
  * @covers UptimeRobot::deleteMonitor
  * @expectedException Exception
  */
 public function testDeleteMonitor_whitout_params()
 {
     $this->object->deleteMonitor();
 }
示例#2
0
//Check custom port
$upRobot->newMonitor('Watchful.li', 'https://watchful.li', $type = 1, $subType = 2, $port = null, $keywordType = null, $keywordValue = null, $HTTPUsername = null, $HTTPPassword = null, $alertContacts = null);
//All parameters
/**
 * Edit monitor
 */
$upRobot->editMonitor($monitorId = 00, $monitorStatus = null, $friendlyName = 'Edit name of monitor');
//Edit name
$upRobot->editMonitor($monitorId = 00, $monitorStatus = null, $friendlyName = null, $URL = null, $subType = 99, $port = 25);
//Edit port of monitor
$upRobot->editMonitor($monitorId = 00, $monitorStatus = null, $friendlyName = null, $URL = null, $subType = null, $port = null, $keywordType = null, $keywordValue = null, $HTTPUsername = null, $HTTPPassword = null, $alertContacts = null);
//All parameters
/**
 * Delete monitor
 */
$upRobot->deleteMonitor(00);
//Delete monitor
/**
 * Get alert contacts
 */
$upRobot->getAlertContacts();
//Get all contacts
$upRobot->getAlertContacts(00);
//Get one contact by her id
/**
 * New alert Contact
 */
$upRobot->newAlertContact(2, 'YOUR-EMAIL');
//Create new alert contact
/**
 * Delete alert Contact