Skip to content

Commit

Permalink
Merge pull request #4 from alphasights/revert-3-da_kill_mongo
Browse files Browse the repository at this point in the history
Revert "Kill the MongoLab Square"
  • Loading branch information
daemonsy authored Oct 21, 2016
2 parents ad58ab4 + 49b276e commit 159f702
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions services.js
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down

0 comments on commit 159f702

Please sign in to comment.