From f39ae1ec58fac17eba99c66248508574857cbf54 Mon Sep 17 00:00:00 2001 From: Rahman Date: Wed, 19 Apr 2017 16:23:40 +0800 Subject: [PATCH] Add tag support upon monitor creation --- lib/api/monitor.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/api/monitor.js b/lib/api/monitor.js index a1a632a..adfaebf 100644 --- a/lib/api/monitor.js +++ b/lib/api/monitor.js @@ -10,6 +10,7 @@ var util = require("util"); * optional, an object containing any of the following * * name: the name of the monitor * * message: the message for the monitor + * * tags: a list of strings as tags to associate with the monitor * * options: an object, to see available options please see the [monitor create](http://docs.datadoghq.com/api/#monitor-create) docs * callback: function(err, res) *example: | @@ -47,6 +48,9 @@ function create(type, query, properties, callback){ if(properties.message){ params.body.message = properties.message; } + if(properties.tags){ + params.body.tags = properties.tags; + } if(typeof properties.options === "object"){ params.body.options = properties.options; }