diff --git a/index.html b/index.html index a7cdbb5..a7040d7 100644 --- a/index.html +++ b/index.html @@ -20,6 +20,8 @@ document.addEventListener("DOMContentLoaded", function(){hljs.initHighlightingOn
post an update to a service check
+the check name (e.g. "app.ok")
+the name of the host submitting the check
+one of dogapi.OK, dogapi.WARNING, dogapi.CRITICAL or dogapi.UNKNOWN
optional, an object containing any of the following
+function(err, res)
+ var dogapi = require("dogapi");
+ var options = {
+ api_key: "api_key",
+ app_key: "app_key"
+ };
+ dogapi.initialize(options);
+ var check = "app.ok";
+ var hostName = "some.machine";
+ dogapi.serviceCheck.check(
+ check, hostName, dogapi.WARNING, function(err, res){
+ console.dir(res);
+ });
+
+