Package com.atlan.model.search
Class AuditSearchRequest
java.lang.Object
com.atlan.model.core.AtlanObject
com.atlan.model.search.AuditSearchRequest
- All Implemented Interfaces:
Serializable
Class from which to configure and run a search against Atlan's activity log.
- See Also:
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
AuditSearchRequest.AuditSearchRequestBuilder<C extends AuditSearchRequest,
B extends AuditSearchRequest.AuditSearchRequestBuilder<C, B>> Nested classes/interfaces inherited from class com.atlan.model.core.AtlanObject
AtlanObject.AtlanObjectBuilder<C extends AtlanObject,
B extends AtlanObject.AtlanObjectBuilder<C, B>> -
Field Summary
Modifier and TypeFieldDescriptionstatic final KeywordField
Type of action made against the asset.static final KeywordField
Type of actor (e.g.static final KeywordField
Name of the agent (specific run of a workflow) that created or changed the asset.static final NumericField
When the asset was created.static final KeywordField
Unique identifier (GUID) of the asset that was created or changed.static final KeywordField
Type of the asset that was created or changed.static final KeywordField
Name of the package that created or changed the asset.static final KeywordField
Unique name of the asset that was created or changed.static final KeywordField
User who made the update to the asset.static final KeywordField
Name of the workflow (specific configuration of a package) that created or changed the asset.Fields inherited from class com.atlan.model.core.AtlanObject
rawJsonObject
-
Constructor Summary
ModifierConstructorDescriptionprotected
-
Method Summary
Modifier and TypeMethodDescriptionstatic AuditSearchRequest.AuditSearchRequestBuilder<?,
?> builder()
static AuditSearchRequest.AuditSearchRequestBuilder<?,
?> byAction
(AtlanClient client, String action, int size) Start building an audit search request for the last common action made to any assets.static AuditSearchRequest.AuditSearchRequestBuilder<?,
?> Start building an audit search request for the last common action made to any assets.static AuditSearchRequest.AuditSearchRequestBuilder<?,
?> byGuid
(AtlanClient client, String guid, int size) Start building an audit search request for the last changes to an asset, by its GUID.static AuditSearchRequest.AuditSearchRequestBuilder<?,
?> Start building an audit search request for the last changes to an asset, by its GUID.static AuditSearchRequest.AuditSearchRequestBuilder<?,
?> byQualifiedName
(AtlanClient client, String typeName, String qualifiedName, int size) Start building an audit search request for the last changes to an asset, by its qualifiedName.static AuditSearchRequest.AuditSearchRequestBuilder<?,
?> byQualifiedName
(String typeName, String qualifiedName, int size) Start building an audit search request for the last changes to an asset, by its qualifiedName.static AuditSearchRequest.AuditSearchRequestBuilder<?,
?> byUser
(AtlanClient client, String userName, int size) Start building an audit search request for the last changes made to any assets, by a given user.static AuditSearchRequest.AuditSearchRequestBuilder<?,
?> Start building an audit search request for the last changes made to any assets, by a given user.protected boolean
boolean
Attributes to include in the entityDetail of each resulting audit entry.getDsl()
Parameters for the search itself.int
hashCode()
search()
Run the search.search
(AtlanClient client) Run the search.toString()
Methods inherited from class com.atlan.model.core.AtlanObject
getRawJsonObject, setRawJsonObject, toJson
-
Field Details
-
CREATED
When the asset was created. -
ENTITY_ID
Unique identifier (GUID) of the asset that was created or changed. -
ENTITY_TYPE
Type of the asset that was created or changed. -
QUALIFIED_NAME
Unique name of the asset that was created or changed. -
USER
User who made the update to the asset. -
ACTION
Type of action made against the asset. -
AGENT
Type of actor (e.g.workflow
) that created or changed the asset, if it was done programmatically. -
PACKAGE_NAME
Name of the package that created or changed the asset. -
WORKFLOW_ID
Name of the workflow (specific configuration of a package) that created or changed the asset. -
AGENT_ID
Name of the agent (specific run of a workflow) that created or changed the asset.
-
-
Constructor Details
-
AuditSearchRequest
-
-
Method Details
-
search
Run the search.- Returns:
- the matching audit log records
- Throws:
AtlanException
-
search
Run the search.- Parameters:
client
- connectivity to the Atlan tenant on which to search the audit logs- Returns:
- the matching audit log records
- Throws:
AtlanException
-
byGuid
Start building an audit search request for the last changes to an asset, by its GUID.- Parameters:
guid
- unique identifier of the asset for which to retrieve the audit historysize
- number of changes to retrieve- Returns:
- a request builder pre-configured with these criteria
-
byGuid
public static AuditSearchRequest.AuditSearchRequestBuilder<?,?> byGuid(AtlanClient client, String guid, int size) Start building an audit search request for the last changes to an asset, by its GUID.- Parameters:
client
- connectivity to the Atlan tenant on which to search the audit logsguid
- unique identifier of the asset for which to retrieve the audit historysize
- number of changes to retrieve- Returns:
- a request builder pre-configured with these criteria
-
byQualifiedName
public static AuditSearchRequest.AuditSearchRequestBuilder<?,?> byQualifiedName(String typeName, String qualifiedName, int size) Start building an audit search request for the last changes to an asset, by its qualifiedName.- Parameters:
typeName
- the type of asset for which to retrieve the audit historyqualifiedName
- unique name of the asset for which to retrieve the audit historysize
- number of changes to retrieve- Returns:
- a request builder pre-configured with these criteria
-
byQualifiedName
public static AuditSearchRequest.AuditSearchRequestBuilder<?,?> byQualifiedName(AtlanClient client, String typeName, String qualifiedName, int size) Start building an audit search request for the last changes to an asset, by its qualifiedName.- Parameters:
client
- connectivity to the Atlan tenant on which to search the audit logstypeName
- the type of asset for which to retrieve the audit historyqualifiedName
- unique name of the asset for which to retrieve the audit historysize
- number of changes to retrieve- Returns:
- a request builder pre-configured with these criteria
-
byUser
Start building an audit search request for the last changes made to any assets, by a given user.- Parameters:
userName
- the name of the user for which to look for any changessize
- number of changes to retrieve- Returns:
- a request builder pre-configured with these criteria
-
byUser
public static AuditSearchRequest.AuditSearchRequestBuilder<?,?> byUser(AtlanClient client, String userName, int size) Start building an audit search request for the last changes made to any assets, by a given user.- Parameters:
client
- connectivity to the Atlan tenant on which to search the audit logsuserName
- the name of the user for which to look for any changessize
- number of changes to retrieve- Returns:
- a request builder pre-configured with these criteria
-
byAction
Start building an audit search request for the last common action made to any assets.- Parameters:
action
- type of action (e.g.ENTITY_CREATE
)size
- number of changes to retrieve- Returns:
- a request builder pre-configured with these criteria
-
byAction
public static AuditSearchRequest.AuditSearchRequestBuilder<?,?> byAction(AtlanClient client, String action, int size) Start building an audit search request for the last common action made to any assets.- Parameters:
client
- connectivity to the Atlan tenant on which to search the audit logsaction
- type of action (e.g.ENTITY_CREATE
)size
- number of changes to retrieve- Returns:
- a request builder pre-configured with these criteria
-
builder
-
toBuilder
-
getDsl
Parameters for the search itself. -
getAttributes
Attributes to include in the entityDetail of each resulting audit entry. -
equals
- Overrides:
equals
in classAtlanObject
-
canEqual
- Overrides:
canEqual
in classAtlanObject
-
hashCode
public int hashCode()- Overrides:
hashCode
in classAtlanObject
-
toString
Description copied from class:AtlanObject
- Overrides:
toString
in classAtlanObject
-