original_string: public function listAlerts()
      {
          if (! isset($this->config['access_token'])) {
              throw new Exception('StatHat Alerts API Access Token not set.');
          }
  
          $result = $this->deleteAlertCurl('x/'.$this->config['access_token'].'/alerts/'.$alert_id);
  
          return $result;
      }
code: public function listAlerts()
      {
          if (! isset($this->config['access_token'])) {
              throw new Exception('StatHat Alerts API Access Token not set.');
          }
  
          $result = $this->deleteAlertCurl('x/'.$this->config['access_token'].'/alerts/'.$alert_id);
  
          return $result;
      }
code_tokens: public function listAlerts ( ) { if ( ! isset ( $ this -> config [ 'access_token' ] ) ) { throw new Exception ( 'StatHat Alerts API Access Token not set.' ) ; } $ result = $ this -> deleteAlertCurl ( 'x/' . $ this -> config [ 'access_token' ] . '/alerts/' . $ alert_id ) ; return $ result ; }
docstring: List stat alerts using the Alerts API. Used to look up alert IDs of alerts assigned
  to certain stats.
  
  @see https://www.stathat.com/manual/alerts_api
  @throws \Exception
docstring_tokens: List stat alerts using the Alerts API . Used to look up alert IDs of alerts assigned to certain stats .