huginn/huginn

EventMixer Agent

Open

#262 创建于 2014年4月23日

在 GitHub 查看
 (7 评论) (5 反应) (0 负责人)Ruby (4,264 fork)batch import
agentdiscussionhelp wanted

仓库指标

Star
 (49,270 star)
PR 合并指标
 (平均合并 4天 2小时) (30 天内合并 15 个 PR)

描述

Ideas/Specs for a new agent:

EventMixer would take multiple incoming events and combine them into one outgoing event.

Multiple modes of functionality:

  1. "Waiting" mode

    It should:

    • Know the sources of incoming events
    • Merge any incoming events from all sources
    • Have a user configurable window of time
    • Wait until an event has been received from each source within the time window
    • Clear the queue if events are not received from all sources within the time window
    • Emit the merged event if events are received from all sources and clear the queue
  2. "Automatic" mode

    It should:

    • Merge any incoming events from all sources
    • Have a user configurable window of time
    • Merge incoming events received within this window of time.
      • Clock starts upon first received event since last outgoing event
    • Emit the merged event if the window of time has elapsed and clear the queue
  3. "Scheduled" mode

    it should:

    • Merge any incoming events from all sources
    • Run on a schedule
    • Emit the merged event upon the scheduled time and clear the queue

贡献者指南