Events API

Kotless DSL provides number of annotations to work with different Events sources in the cloud.

Scheduled events

`Scheduled` annotation declares that function, annotated with it, should be triggered by a timer.

Mostly, it should be used to setup scheduled jobs.

Note, that function should not have any parameters, since it will be called via crontab-like service that passes no context.

Annotation requires `cron` argument - it is a cron expression that defines trigger behavior. Its syntax is taken from AWS Scheduled Events

Also, you can provide `id` argument -- it will be used to create trigger on a cloud side. If case no `id` is provided it will be generated by Kotless during deployment.

Here is an example of Scheduled job:

@Scheduled(Scheduled.everyHour)
fun storageCleanup() {
    logger.info("Starting storage cleanup")
    Storage.cleanup()
    logger.info("Ended storage cleanup")
}