public List<Trigger> createTrigger(BigInteger alertId, Trigger trigger) throws IOException, TokenExpiredException {
        String requestUrl = RESOURCE + "/" + alertId.toString() + "/triggers";
        ArgusResponse response = getClient().executeHttpRequest(ArgusHttpClient.RequestType.POST, requestUrl, trigger);

        assertValidResponse(response, requestUrl);
        return fromJson(response.getResult(), new TypeReference<List<Trigger>>() { });
    }
public List < Trigger > createTrigger ( BigInteger alertId , Trigger trigger ) throws IOException , TokenExpiredException { String requestUrl = RESOURCE + "/" + alertId . toString ( ) + "/triggers" ; ArgusResponse response = getClient ( ) . executeHttpRequest ( ArgusHttpClient . RequestType . POST , requestUrl , trigger ) ; assertValidResponse ( response , requestUrl ) ; return fromJson ( response . getResult ( ) , new TypeReference < List < Trigger > > ( ) { } ) ; }
Creates a new trigger.

@param   alertId  The ID of the alert that will own the trigger.
@param   trigger  The trigger to create having an un-populated ID field.

@return  The trigger having a populated ID field.

@throws  IOException  If the server cannot be reached.
@throws  TokenExpiredException   If the token sent along with the request has expired