public function deleteAlert($alert_id)
    {
        if (! isset($this->config['access_token'])) {
            throw new Exception('StatHat Alerts API Access Token not set.');
        }

        $result = $this->curlDelete($this->alerts_url.'/x/'.$this->config['access_token'].'/alerts/'.$alert_id);

        return $result;
    }
public function deleteAlert($alert_id)
    {
        if (! isset($this->config['access_token'])) {
            throw new Exception('StatHat Alerts API Access Token not set.');
        }

        $result = $this->curlDelete($this->alerts_url.'/x/'.$this->config['access_token'].'/alerts/'.$alert_id);

        return $result;
    }
public function deleteAlert ( $ alert_id ) { if ( ! isset ( $ this -> config [ 'access_token' ] ) ) { throw new Exception ( 'StatHat Alerts API Access Token not set.' ) ; } $ result = $ this -> curlDelete ( $ this -> alerts_url . '/x/' . $ this -> config [ 'access_token' ] . '/alerts/' . $ alert_id ) ; return $ result ; }
Delete a stat alert using the Alerts API.

@see https://www.stathat.com/manual/alerts_api
@param string $alert_id - Unique id of alert to be deleted
@throws \Exception
Delete a stat alert using the Alerts API .