Datadog API Node.JS Client
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

36 lines
778 B

var util = require('util');
var alert_api = function(){
};
alert_api.prototype.add_alert = function(){
};
alert_api.prototype.update_alert = function(){
};
alert_api.prototype.get_alert = function(alert_id, callback){
this.request('GET', util.format('/alert/%s', alert_id), callback)
};
alert_api.prototype.delete_alert = function(){
this.request('DELETE', util.format('/alert/%s', alert_id), callback)
};
alert_api.prototype.get_all_alerts = function(){
this.request('GET', '/alert', callback)
};
alert_api.prototype.mute_alerts = function(callback){
this.request('POST', '/mute_alerts', callback)
};
alert_api.prototype.unmute_alerts = function(callback){
this.request('POST', '/unmute_alerts', callback)
};
return module.exports = alert_api;