Class RedissonTimeSeriesAuditEventRepository
java.lang.Object
se.swedenconnect.spring.saml.idp.audit.repository.FilteringAuditEventRepository
se.swedenconnect.spring.saml.idp.audit.repository.RedissonTimeSeriesAuditEventRepository
- All Implemented Interfaces:
org.springframework.boot.actuate.audit.AuditEventRepository
An
AuditEventRepository
implementation that uses Redis time series to store events.- Author:
- Martin Lindström, Felix Hellman
-
Constructor Summary
ConstructorDescriptionRedissonTimeSeriesAuditEventRepository
(org.redisson.api.RedissonClient client, String tsName, AuditEventMapper mapper) Constructor setting up the repository to log all events.RedissonTimeSeriesAuditEventRepository
(org.redisson.api.RedissonClient client, String tsName, AuditEventMapper mapper, Predicate<org.springframework.boot.actuate.audit.AuditEvent> filter) Constructor setting up the repository to log events according to the supplied filter. -
Method Summary
Methods inherited from class se.swedenconnect.spring.saml.idp.audit.repository.FilteringAuditEventRepository
add, exclusionPredicate, inclusionExclusionPredicate, inclusionPredicate
-
Constructor Details
-
RedissonTimeSeriesAuditEventRepository
public RedissonTimeSeriesAuditEventRepository(org.redisson.api.RedissonClient client, String tsName, AuditEventMapper mapper) Constructor setting up the repository to log all events.- Parameters:
client
- the Redis clienttsName
- the Redis timeseries name holding the audit eventsmapper
- mapper for creating/reading JSON events
-
RedissonTimeSeriesAuditEventRepository
public RedissonTimeSeriesAuditEventRepository(org.redisson.api.RedissonClient client, String tsName, AuditEventMapper mapper, Predicate<org.springframework.boot.actuate.audit.AuditEvent> filter) Constructor setting up the repository to log events according to the supplied filter.- Parameters:
client
- the Redis clienttsName
- the Redis timeseries name holding the audit eventsmapper
- mapper for creating/reading JSON eventsfilter
- filter for determining which events to log
-
-
Method Details
-
addEvent
protected void addEvent(org.springframework.boot.actuate.audit.AuditEvent event) Logs an event.- Specified by:
addEvent
in classFilteringAuditEventRepository
- Parameters:
event
- the audit event to log
-
find
-