Redis repository
filter_events(filters)
Filters events based on patterns generated from the provided filters.
| PARAMETER | DESCRIPTION |
|---|---|
filters
|
filters to apply.
TYPE:
|
get_event(event_id)
Get an event by its ID.
| PARAMETER | DESCRIPTION |
|---|---|
event_id
|
event ID.
TYPE:
|
remove_all_events()
Removes all events from the repository.
| RETURNS | DESCRIPTION |
|---|---|
Result
|
types.Result: result of the operation. |
remove_event(event_id)
Removes an event by its ID.
| PARAMETER | DESCRIPTION |
|---|---|
event_id
|
event ID.
TYPE:
|
| RETURNS | DESCRIPTION |
|---|---|
Result
|
types.Result: result of the operation. |
remove_events(filters)
Removes a filtered set of events from the repository.
| PARAMETER | DESCRIPTION |
|---|---|
filters
|
filters to apply.
TYPE:
|
| RETURNS | DESCRIPTION |
|---|---|
Result
|
types.Result: result of the operation. |
test_connection()
Tests the connection to the repository.
| RETURNS | DESCRIPTION |
|---|---|
bool
|
whether the connection was successful.
TYPE:
|
write_event(event)
Writes an event to Redis.
| PARAMETER | DESCRIPTION |
|---|---|
event
|
event to write.
TYPE:
|
| RETURNS | DESCRIPTION |
|---|---|
Result
|
types.Result: result of the operation. |