diff --git a/index.html b/index.html index 6b23cbe..f58bc8e 100644 --- a/index.html +++ b/index.html @@ -34,6 +34,8 @@ document.addEventListener("DOMContentLoaded", function(){hljs.initHighlightingOn
search for metrics and hosts from the past 24 hours
+the seach query to perform (e.g. "app1" or "hosts:app1" or "metrics:response")
+function(err, res)
+var dogapi = require("dogapi");
+var options = {
+ api_key: "api_key",
+ app_key: "app_key"
+};
+dogapi.initialize(options);
+var query = "app";
+dogapi.search.search(query, function(err, res){
+ console.dir(res);
+});
+
+