portertech/sensu — pull request #1 by portertech (2011-11-20 18:55:34+00:00)
Title: allow for more precise targeting of clients

- every client queue binds to a special exchange
- checks can have subscribers that are hashes, key/value pairs for client attribute matching

eg.

a check can now target a single client
"subscribers": [{"name": "hostname"}]
or multiple clients that subscribe to a set of subscriptions
"subscribers": [{"subscribes": "web_server", "subscribes": "memcached"}]
or a combination
"subscribers": [{"subscribes": "web_server", "subscribes": "memcached", "custom_attribute": "value"}, "load_balancer"]