lib/serverdensity/Api/Alerts.php
public function create($alert, $recipients, $wait, $repeat){
        $alert['recipients'] = json_encode($recipients);
        $alert['wait'] = json_encode($wait);
        $alert['repeat'] = json_encode($repeat);

        return $this->post('alerts/configs/', $alert);
    }
public function create($alert, $recipients, $wait, $repeat){
        $alert['recipients'] = json_encode($recipients);
        $alert['wait'] = json_encode($wait);
        $alert['repeat'] = json_encode($repeat);

        return $this->post('alerts/configs/', $alert);
    }
public function create ( $ alert , $ recipients , $ wait , $ repeat ) { $ alert [ 'recipients' ] = json_encode ( $ recipients ) ; $ alert [ 'wait' ] = json_encode ( $ wait ) ; $ alert [ 'repeat' ] = json_encode ( $ repeat ) ; return $ this -> post ( 'alerts/configs/' , $ alert ) ; }
Create an alert
@link     https://developer.serverdensity.com/docs/creating-an-alert
@param    array  $alert       with the basic attributes
@param    array  $recipients  with all its recipients
@param    array  $wait        with seconds, enabled and displayunit
@param    array  $repeat      with seconds, enabled and displayunit
@return   an array that is the alert
Create an alert