Skip to content

Latest commit

 

History

History

client

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 

Auditor-v1 client

Api/Configurations

It offers primarily two flavours for auditing events.

  • audit: This api lets application pass two objects and perform an automatic data comparison of both objects. The observed differences are structured into an audit event message with decorated metadata and sent over to kafka.
  • log: This api lets application pass only a single object. The object is then serialized into json text and decorated with additional metadata and thereby converted to an audit message which is then sent over to kafka.

These api(s) also accepts following parameters which customizes the auditor behaviour while capturing audits:

  • auditorEventConfig: Contains configurations for auditor.
  • context: Reactor's context containing relevant metadata, traceId etc

Using auditor-v1 client library

Refer the gradle/maven dependency detail below to use the client library in stand-alone mode:

Gradle:
implementation("io.github.lowes:auditor-client:${version}")
Maven:
<dependency>
     <groupId>io.github.lowes</groupId>
     <artifactId>auditor-client</artifactId>
     <version>${version}</version>
 </dependency>