private String publish ( KeenProject project , String eventCollection , Map < String , Object > event ) throws IOException { URL url = createURL ( project , eventCollection ) ; if ( url == null ) { throw new IllegalStateException ( "URL address is empty" ) ; } return publishObject ( project , url , event ) ; }
Publishes a single event to the Keen service .