com.cloudera.api.model
Class ApiAudit

java.lang.Object
  extended by com.cloudera.api.model.ApiAudit

public class ApiAudit
extends Object

Models audit events from both CM and CM managed services like HDFS, HBase and Hive. Audits for CM managed services are retrieved from Cloudera Navigator server.


Constructor Summary
ApiAudit()
           
ApiAudit(String service, String username, String impersonator, String command, String ipAddress, String resource, boolean allowed, Date timestamp, String operationText, Map<String,String> serviceValues)
           
 
Method Summary
 boolean equals(Object o)
           
 boolean getAllowed()
          Whether the operation was allowed or denied by the authorization system.
 String getCommand()
          The command/operation that was requested.
 String getImpersonator()
          The impersonating user (or the proxy user) who submitted this operation.
 String getIpAddress()
          The IP address that the client connected from.
 String getOperationText()
          The full text of the requested operation.
 String getResource()
          The resource that the operation was performed on.
 String getService()
          Service name associated with this audit.
 Map<String,String> getServiceValues()
           
 Date getTimestamp()
          When the audit event was captured.
 String getUsername()
          The user who performed this operation.
 int hashCode()
           
 void setAllowed(boolean allowed)
           
 void setCommand(String command)
           
 void setImpersonator(String impersonator)
           
 void setIpAddress(String ipAddress)
           
 void setOperationText(String operationText)
           
 void setResource(String resource)
           
 void setService(String service)
           
 void setTimestamp(Date timestamp)
           
 void setUsername(String userName)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ApiAudit

public ApiAudit()

ApiAudit

public ApiAudit(String service,
                String username,
                String impersonator,
                String command,
                String ipAddress,
                String resource,
                boolean allowed,
                Date timestamp,
                String operationText,
                Map<String,String> serviceValues)
Method Detail

equals

public boolean equals(Object o)
Overrides:
equals in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object

toString

public String toString()
Overrides:
toString in class Object

getTimestamp

public Date getTimestamp()
When the audit event was captured.


setTimestamp

public void setTimestamp(Date timestamp)

getService

public String getService()
Service name associated with this audit.


setService

public void setService(String service)

getUsername

public String getUsername()
The user who performed this operation.


setUsername

public void setUsername(String userName)

getImpersonator

public String getImpersonator()
The impersonating user (or the proxy user) who submitted this operation. This is usually applicable when using services like Oozie or Hue, who can be configured to impersonate other users and submit jobs.


setImpersonator

public void setImpersonator(String impersonator)

getIpAddress

public String getIpAddress()
The IP address that the client connected from.


setIpAddress

public void setIpAddress(String ipAddress)

getCommand

public String getCommand()
The command/operation that was requested.


setCommand

public void setCommand(String command)

getResource

public String getResource()
The resource that the operation was performed on.


setResource

public void setResource(String resource)

getAllowed

public boolean getAllowed()
Whether the operation was allowed or denied by the authorization system.


setAllowed

public void setAllowed(boolean allowed)

getOperationText

public String getOperationText()
The full text of the requested operation. E.g. the full Hive query.

Available since API v5.


setOperationText

public void setOperationText(String operationText)

getServiceValues

public Map<String,String> getServiceValues()


Copyright © Cloudera, Inc. Released under Apache License, Version 2.0.