Comparing version 0.1.1 to 0.1.2
@@ -22,6 +22,6 @@ var util = require('util'); | ||
for(var i in dashboard['graphs']){ | ||
if(!dashboard['graphs']['title']){ | ||
if(!dashboard['graphs'][i]['title']){ | ||
throw new Error(util.format('`dashboard["graphs"][%s]["title"]` is missing', i)); | ||
} | ||
if(!dashboard['graphs']['definition']){ | ||
if(!dashboard['graphs'][i]['definition']){ | ||
throw new Error(util.format('`dashboard["graphs"][%s]["definition"]` is missing', i)); | ||
@@ -28,0 +28,0 @@ } |
@@ -6,2 +6,3 @@ var extend = require('extend'); | ||
var dash_api = require('./api/dash.js'); | ||
var screen_api = require('./api/screen.js'); | ||
var event_api = require('./api/event.js'); | ||
@@ -20,2 +21,3 @@ var tag_api = require('./api/tag.js'); | ||
dash_api.prototype, | ||
screen_api.prototype, | ||
event_api.prototype, | ||
@@ -22,0 +24,0 @@ tag_api.prototype, |
{ | ||
"name": "dogapi", | ||
"version": "0.1.1", | ||
"version": "0.1.2", | ||
"description": "Datadog API Node.JS Client", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
@@ -90,2 +90,12 @@ node-dogapi | ||
* method to remove a dashboard from datadog | ||
* `dogapi.get_screenboard(screen_id, [callback])` | ||
* method to get a single screenboard information | ||
* `dogapi.get_all_screenboards([callback])` | ||
* method to retrieve all screenboards in datadog | ||
* `dogapi.create_screenboard(screenboard, [callback])` | ||
* method used to create a new screenboard in datadog | ||
* `dogapi.update_screenboard(screen_id, screenboard, [callback])` | ||
* method used to update the screenboard with the provided `screen_id` | ||
* `dogapi.delete_screenboard(screen_id, [callback])` | ||
* method to remove a screenboard from datadog | ||
* `dogapi.search(query, [callback])` | ||
@@ -92,0 +102,0 @@ * method used to query the api for `metrics` or `hosts` |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
37448
12
855
159
11