code: public void createEvent(Map<String, Object> eventParams) throws OAuthSystemException, OAuthProblemException, URISyntaxException {
  		cleanError();
  		prepareToken();
  
  		OneloginURLConnectionClient httpClient = new OneloginURLConnectionClient();
  		OAuthClient oAuthClient = new OAuthClient(httpClient);
  
  		URIBuilder url = new URIBuilder(settings.getURL(Constants.CREATE_EVENT_URL));
  		OAuthClientRequest bearerRequest = new OAuthBearerClientRequest(url.toString())
  			.buildHeaderMessage();
  
  		Map<String, String> headers = getAuthorizedHeader();
  		bearerRequest.setHeaders(headers);
  
  		String body = JSONUtils.buildJSON(eventParams);
  		bearerRequest.setBody(body);
  
  		OneloginOAuthJSONResourceResponse oAuthResponse = oAuthClient.resource(bearerRequest, OAuth.HttpMethod.POST, OneloginOAuthJSONResourceResponse.class);
  		if (oAuthResponse.getResponseCode() != 200 || !oAuthResponse.getType().equals("success")) {
  			error = oAuthResponse.getError();
  			errorDescription = oAuthResponse.getErrorDescription();
  			errorAttribute = oAuthResponse.getErrorAttribute();
  		}
  	}
docs: Create an event in the OneLogin event log.
  
  @param eventParams
  Event Data (event_type_id, account_id, actor_system, actor_user_id, actor_user_name, app_id,
  assuming_acting_user_id, custom_message, directory_sync_run_id, group_id, group_name, ipaddr,
  otp_device_id, otp_device_name, policy_id, policy_name, role_id, role_name, user_id, user_name)
  
  @throws OAuthSystemException - if there is a IOException reading parameters of the httpURLConnection
  @throws OAuthProblemException - if there are errors validating the OneloginOAuthJSONResourceResponse and throwOAuthProblemException is enabled
  @throws URISyntaxException - if there is an error when generating the target URL at the URIBuilder constructor
  
  @see com.onelogin.sdk.model.Event
  @see <a target="_blank" href="https://developers.onelogin.com/api-docs/1/events/create-event">Create Event documentation</a>