Sanket Shelar created RANGER-5510:
-------------------------------------

             Summary: Create an API to Retrieve Policy Change Counts from Admin 
Audit Logs for the Past N Days
                 Key: RANGER-5510
                 URL: https://issues.apache.org/jira/browse/RANGER-5510
             Project: Ranger
          Issue Type: Improvement
          Components: Ranger
            Reporter: Sanket Shelar
            Assignee: Rakesh Gupta


Implement a open API that provides *aggregated audit counts* based on *action*  
and {*}class types{*}.
The aggregation logic should return the *count of audit records* grouped by 
{{class_type}} and {{{}action{}}}.
h2. *API Requirements*
h3. *Input Parameters*

The API should accept the following request parameters:
h4. 1. *action*
 * Type: {{List<String>}}

 * Description: List of audit actions to be included in the aggregation

 * Allowed values:

 ** {{create}}

 ** {{update}}

 ** {{delete}}

 * Example:
 
 {{["create", "update"]}}

h4. 2. *class_type*
 * Type: {{Long}}

 * Description: class type IDs for which audit counts are required

 * Allowed class types:
 
 {{public static final int CLASS_TYPE_XA_SERVICE    = 1030;public static final 
int CLASS_TYPE_RANGER_POLICY = 1020;public static final int CLASS_TYPE_XA_USER  
     = 1003;public static final int CLASS_TYPE_XA_GROUP      = 1002;public 
static final int CLASS_TYPE_RANGER_ROLE   = 1057;}}



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to