Add YAML config loading with validation, env overrides for secrets, and a web dashboard exposing health, stats, and recent events.
14 lines
282 B
V
14 lines
282 B
V
module sources
|
|
|
|
pub fn transform_cron(raw string, source CronSource) ?Event {
|
|
return Event{
|
|
source: 'cron'
|
|
name: source.name
|
|
topic: source.topic
|
|
priority: source.priority_map['default'] or { 0 }
|
|
tags: source.tags.clone()
|
|
message: raw
|
|
raw: raw
|
|
}
|
|
}
|