Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Drawio
bordertrue
diagramNameLogs_Approach
simpleViewerfalse
linksauto
tbstyletop
lboxtrue
diagramWidth445
revision1


LogRecord

LogRecord is a the main entity for saving/retrieving log info:

FieldTypeDefaultRequiredNote
EventIdUUIDNY
UserUUIDNN
ItemUUIDNN
ObjectEnum<String>NN
Action
NN
DateDateTimeNN
ServicePointStringNN
Source
NN
DescriptionStringNN
LinkToUUIDNN
NotesTextNN


HL Flow Design

Flow description:

LogRecord saving:

1) LogUtils provides inline handler that construct event message with request (optional), response (mandatory), metadata (TBD). This handler is built into the logic of each method that handles a specific business process.

2) LogUtils sends event to PubSub/Kafka.

3) LogListener listening to the event bus and gets event.

4) LogRecordResolver determines type of record, extracts needed information, populates LogRecord and saves record to DB.

LogRecord retrieving:

1) Client makes call to LogsService /audit-data/logs with CQL query and shows result.

Drawio
bordertrue
diagramNameCirculation_Logs_Flow
simpleViewerfalse
width
linksauto
tbstyletop
lboxtrue
diagramWidth701
revision3

...