From a76e66d3144b02491309ee0c462c825906c8fb08 Mon Sep 17 00:00:00 2001 From: Josh Kurz Date: Thu, 10 Mar 2016 14:29:51 -0500 Subject: [PATCH] feat(graphs): add getEmbeds function Signed-off-by: Josh Kurz --- lib/api/graph.js | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/lib/api/graph.js b/lib/api/graph.js index f5eeaac..1466541 100644 --- a/lib/api/graph.js +++ b/lib/api/graph.js @@ -125,6 +125,20 @@ function revokeEmbed(embedId, callback){ client.request("GET", "/graph/embed/" + embedId + "/revoke", callback); } + +/*section: graph + *comment: get all embeds from datadog + *example: | + * ```javascript + * dogapi.graph.getEmbeds(function(err, res){ + * console.dir(res); + * }); + * ``` + */ +function getEmbeds(callback) { + client.request("GET", '/graph/embed', callback); +} + module.exports = { snapshot: snapshot, createEmbed: createEmbed,