Browse Source

feat(graphs): add getEmbeds function

Signed-off-by: Josh Kurz <josh.kurz@turner.com>
pull/33/head
Josh Kurz 10 years ago
parent
commit
a76e66d314
1 changed files with 14 additions and 0 deletions
  1. +14
    -0
      lib/api/graph.js

+ 14
- 0
lib/api/graph.js View File

@ -125,6 +125,20 @@ function revokeEmbed(embedId, callback){
client.request("GET", "/graph/embed/" + embedId + "/revoke", 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 = { module.exports = {
snapshot: snapshot, snapshot: snapshot,
createEmbed: createEmbed, createEmbed: createEmbed,


Loading…
Cancel
Save