@Override
  public AuditEvent createAuditEvent(final Request request, final Result result) {

    return DefaultRequestAuditEvent.builder()
      .withTimestamp(System.currentTimeMillis())
      .withRemoteIp(request.getRemoteAddress())
      .withRequestType(request.getRequestType())
      .withUrl(request.getURI())
      .withResultStatus(result.getStatus())
      .build();
  }
Creates a simple {@link AuditEvent} with the details of request and response
@param request HTTP request object
@param result HTTP result object
@return
ambari-server/src/main/java/org/apache/ambari/server/audit/request/eventcreator/DefaultEventCreator.java