From 49b276ee90c96f3d65922049aef26da07be33a00 Mon Sep 17 00:00:00 2001 From: Damon Aw Date: Tue, 16 Dec 2014 12:14:21 -0500 Subject: [PATCH] Revert "Kill the MongoLab Square" --- services.js | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/services.js b/services.js index b5ba7db..31be26d 100644 --- a/services.js +++ b/services.js @@ -93,6 +93,24 @@ Service({ } }); +Service({ + name: 'Mongolab DB', + url : "https://api.mongolab.com:443/api/1/" + + "clusters/rs-dbh97/databases/mongolab-status/" + + "collections/public-status-events?" + + "q={ '$and': [ {'timeResolved': {'$exists': false}}," + + encodeURI("{'timeStarted': {'$lt': {'$date': '" + (new Date()).toISOString() + "'}}},") + + "{'published': true}," + + "{'serviceType': 'DB'} ] }" + + "&fo=true" + + "&s={'timeStarted': -1}" + + "&apiKey=4f023946e4b0d227da1b51d8", + status: function(response) { + console.log(response); + return response === null; + } +}); + Service({ name: 'Twilio', url: 'http://status.twilio.com',