private Integer getPriority(RequestAuditEventCreator creator, Resource.Type resourceType, ResultStatus resultStatus, Request.Type requestType) {
    Integer priority = 0;

    if (isIncompatible(creator, resourceType, resultStatus, requestType)) {
      return null;
    }

    priority += creator.getRequestTypes() != null && creator.getRequestTypes().contains(requestType) ? REQUEST_TYPE_PRIORITY : 0;
    priority += creator.getResultStatuses() != null && creator.getResultStatuses().contains(resultStatus.getStatus()) ? RESULT_STATUS_PRIORITY : 0;
    priority += creator.getResourceTypes() != null && creator.getResourceTypes().contains(resourceType) ? RESOURCE_TYPE_PRIORITY : 0;
    return priority;
  }
Calculates the creator priority for the actual resouce type, result status and request type
@param creator
@param resourceType
@param resultStatus
@param requestType
@return
ambari-server/src/main/java/org/apache/ambari/server/audit/request/RequestAuditLoggerImpl.java