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