AWS EventBridge - reading event archive - aws-event-bridge

Does anyone know if there's an API for reading events archived using the EventBridge archiving feature?
We're aiming to do event replays but the out-of-the-box event replay feature won't work for us as we need to preserve time order of the events. As a workaround, I'm wondering if there's an option to do this manually by trawling the event archive and then raising the events in order

Related

How to automate getting ZKTeco Access Control Logs

How can I automate getting the logs of ZKTeco access control devices (InBio160/260)? The documentation regarding the SDK is not understandable at all. From the GUI perspective, you select the devices, press Get logs, and select delete all logs after downloading them. This is something that is done constantly so I don't understand why there is not a built-in scheduler performing this task?
If anyone has set up a ZKTeco access control system or worked with their SDK, any help would be appreciated. Attached is the UI and the get logs button I want to automate.
I need to sync data between different buildings but if the logs are not downloaded to the SQL Server a few times a day, the syncing program will not function properly.
I wrote an SDK wrapper in C#. Code on github
It contains all functions you may need, It can at least help you understand the SDK.
This is the function you want to call to get the log: ReadTransactionLog
Transaction[]? transactions = ReadTransactionLog(0); // 0 = all log, epoch time in seconds

How can I control the MS Graph event order sequence?

I've implemented an app that subscribes to MS Graph events. One problem that I have is that sometimes I get Updated events before the corresponding Created events. I've also seen events for mail messages where the response to a message comes before the actual message. This makes is pretty hard to process all events robustly.
Is there a way to control the order of events in MS Graph Subscriptions? How do I ensure that events that depend/reference other events arrive in order?
Thanks!
I think your best solution is likely to not solely rely on the Notifications that you are getting from the webhook but to combine this with the Delta Query functionality.
There's a tutorial on this approach: https://learn.microsoft.com/en-us/graph/tutorials/change-notifications

Async logging of a static queue in Objective-C

I'd like some advice on how to implement the following in Objective C. The actual application in related to an AB testing framework I'm working on, but that context shouldn't matter too much.
I have an IOS application, and when a certain event happens I'd like to send a log message to a HTTP Service endpoint.
I don't want to send the message every time the event happens. Instead I'd prefer to aggregate them, and when it gets to some (configurable) number, I'd like to send them off async.
I'm thinking to wrap up a static NSMutableArray in a class with an add method. That method can check to see if we have reached the configurable max number, if we have, aggregate and send async.
Does objective-c offer any better constructs to store this data? Perhaps one that helps handle concurrency issues? Maybe some kind of message queue?
I've also seen some solutions with dispatching that I'm still trying to get my head around (I'm new).
If the log messages are important, keeping them in memory (array) might not suffice. If the app quits or crashes the NSArray will not persist on subsequent execution.
Instead, you should save them to a database with an 'sync' flag. You can trigger the sync module on every insert to check if the entries with sync flag set to false has reached a threshold and trigger the upload and set sync flag to true for all uploaded records of simply delete the synced records. This also helps you separate your logging module and syncing module and both of them work independently.
You will get a lot of help for syncing SQLite db or CoreData online. Check these links or simply google iOS database sync. If your requirements are not very complex, and you don't mind using third party or open source code, it is always better to go for a readily available solution instead of reinventing the wheel.

Communicate between UIAutomation and app

Is there any way for a UIAutomation script to communicate with the running app and just send it information, trigger a function, or change a variable - directly rather than through the UI?
I ask because I am using just using the script to take screenshots and it would be really handy if I could tell the app to set a couple of integers rather than dealing with somewhat unreliable and difficult to set up multitouch gestures and timing.
I stumble upon this today while having same need.
I have solved this is by using GCDWebServer and sending post message from my app to the local web server end point hosted in UIAutomation.

How to find out when user-created calendar events are about to start [Rails]

I'm building an online calendar in Ruby on Rails that needs to send out email notifications whenever a user-created event is about to start/finish (i.e you get a reminder when a meeting is 5 minutes away). What's the best way of figuring out when an event is about to start? Would there be a cron task that checks through all events to find out which ones are starting within a certain threshold (i.e 5 minutes) ? A cron task seems inefficient to me, so I'm wondering what might be a better solution. My events are stored in a mySQL database. There must be a design pattern for this... I'm just at a loss for what to search for.
Any help would be greatly appreciated. Thanks.
In all likelihood you will probably implement some background queuing mechanism to actually deliver the notifications - at least you certain should be considering this approach.
Assuming this, why not create your delayed notification jobs at event creation time to be delivered when the associated event is starting or finishing. The background queue, which is already waking up periodically to look for work, will pick these up and run them.
However adopting this approach requires you to consider the following (at least):
Removing queued notification job if the associated event is removed
Amending the notification job if the associated event is amended (say a new time)
Ensuring that the polling resolution of the queuing system does not allow notifications to be delivered so late as to be useless.
If you haven't picked a queuing solution for your application you should consider these options

Resources