yieldproject/playa — Issue #52: Triggers/alerts/derived metrics system
Author: minorg
Created: 2012-02-04 03:21:05+00:00
State: open

trigger_service: wrap both resource_definition_service and metric_value_service
(later: trigger_definition_service + trigger_execution_service, communicating)
intercept insert_resource_definition to a specific URL (urn:trigger:where clause:plugin_name/scheme) -> trigger_definition
on init, checks for these urns, installs triggers
intercept update_metric_value(), check all triggers (indexed in memory) against affected URLs
plugin = alert, derive_x, etc. handles def trigger(trigger_definition, metric values) calls