lib/serverdensity/Api/Alerts.php
public function bySubject($subjectId, $subjectType){
        $type = array('subjectType' => $subjectType);

        return $this->get('alerts/configs/'.rawurlencode($subjectId), $type);
    }
public function bySubject($subjectId, $subjectType){
        $type = array('subjectType' => $subjectType);

        return $this->get('alerts/configs/'.rawurlencode($subjectId), $type);
    }
public function bySubject ( $ subjectId , $ subjectType ) { $ type = array ( 'subjectType' => $ subjectType ) ; return $ this -> get ( 'alerts/configs/' . rawurlencode ( $ subjectId ) , $ type ) ; }
Get all alerts by subjectId
@link     https://developer.serverdensity.com/docs/listing-alerts-by-subject
@param    string  $subjectId  Id of the subject tied to alert
@param    string  $subjectType either device or service
@return   an array of arrays with devices.
Get all alerts by subjectId