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,