My book Instant RabbitMQ Messaging Application Development How-to is available to pre-order.
I think its a great book if you are interested in messaging and scaling applications; the examples are in Node.js.
___ _ _ _ __ ___ _ __ __ _ _ __ __ _ ___ ___ / __| | | | '_ \ / _ \ '__| / _` | '__/ _` / __/ __| \__ \ |_| | |_) | __/ | | (_| | | | (_| \__ \__ \ |___/\__,_| .__/ \___|_| \__, |_| \__,_|___/___/ | | __/ | |_| |___/
super-grass object; start watching and wait for a response; thesnitch event to fire.var SuperGrass = require('super-grass') , options = require('./options'); var superGrass = new SuperGrass(options); superGrass.watch(); superGrass.on('snitch', function(report) { console.log("RESULTS", report); //mail here //log here });
{ name: 'api for airasoul.net', failed: false }, { name: 'api for airasoul.net', failed: false }, { name: 'api for airasoul.net', failed: false }, { name: 'api for 127', failed: true }, { name: 'api for 127', failed: true }, { name: 'api for 127', failed: true }, { name: 'local mongo', failed: true }, { name: 'local mongo', failed: true }, { name: 'local mongo', failed: true }, { name: 'redis local', failed: false }, { name: 'redis local', failed: false }, { name: 'redis local', failed: false }, { name: 'local rabbitmq', failed: false }, { name: 'local rabbitmq', failed: false }, { name: 'local rabbitmq', failed: false }
module.exports = { settings: { interval: "10000", retry: "3", retryTimeout: "500" } , resources: [{ name: "api for airasoul.net", type: "api", host: "http://airasoul.net", enabled : true }, { name: "api for blog.airasoul.net", type: "api", host: "http://blog.airasoul.net", enabled : true }, { name: "local mongo", type: "mongo", host: "localhost", database: "staging", port: 27017, enabled : true }, { name: "redis local", type: "redis", host: "http://127.0.0.1", port: 6379, enabled : true }, { name: "local rabbitmq", type: "rabbit", host: "http://127.0.0.1:15672/api/overview", username: "guest", password: "guest", enabled : true }] }
interval - the interval between notificationsretry - the number of retries for a resourceretryTimeout - a timeout value between retriesresources - a list of resources to be monitored
<add key="AuthenticationKey" value="TheseAreTheDroidsYouAreLookingFor" />
[ApiAuthorizationFilter] public HttpResponseMessage Post(Droid droid)
| Action | HTTP method | URI |
| Create a new droid | POST | /api/droids |