When doing configuration before deployment, I want to see a sample of events. At the simplest, one of each event per minute. And then one of each event per minute per server. These should be written to individual files. Write these into ./sinks/samples
event_name.json --formatted JSON file
./domain/server/instance/event_name.json
For each event, check when we last wrote one, if it's been a minute, then overwrite
Have the frequency be configurable. So maybe we could do 5 minutes in prod to just keep a sample of each one.
Don't clean up old ones. Just write new ones.
Make sure it can decide not to write a sample event quickly and return
When doing configuration before deployment, I want to see a sample of events. At the simplest, one of each event per minute. And then one of each event per minute per server. These should be written to individual files. Write these into
./sinks/samples
event_name.json
--formatted JSON file./domain/server/instance/event_name.json