lib/serverdensity/Api/Alerts.php
public function triggered($closed='', $subjectType='', $subjectId=''){
        $fields = array();
        if(!empty($closed)){
            $fields['closed'] = $closed;
        }
        if (!empty($subjectType)) {
            $fields['subjectType'] = $subjectType;
        }

        return $this->get('alerts/triggered/'.rawurlencode($subjectId), $fields);
    }
public function triggered($closed='', $subjectType='', $subjectId=''){
        $fields = array();
        if(!empty($closed)){
            $fields['closed'] = $closed;
        }
        if (!empty($subjectType)) {
            $fields['subjectType'] = $subjectType;
        }

        return $this->get('alerts/triggered/'.rawurlencode($subjectId), $fields);
    }
public function triggered ( $ closed = '' , $ subjectType = '' , $ subjectId = '' ) { $ fields = array ( ) ; if ( ! empty ( $ closed ) ) { $ fields [ 'closed' ] = $ closed ; } if ( ! empty ( $ subjectType ) ) { $ fields [ 'subjectType' ] = $ subjectType ; } return $ this -> get ( 'alerts/triggered/' . rawurlencode ( $ subjectId ) , $ fields ) ; }
Get triggered alerts
@link     https://developer.serverdensity.com/docs/triggered-alerts
@param    bool    $closed         whether alert is closed or open
@param    string  $subjectType    the subjecttype to filter on
@param    string  $subjectId      optional subjectID to filter on.
@return   an array of arrays with devices.
Get triggered alerts