From dfdf498da8b64c98cabbc4a6eaeed4014219ec4f Mon Sep 17 00:00:00 2001
From: brettlangdon
Date: Sat, 21 Mar 2015 09:28:10 -0400
Subject: [PATCH] build docs
---
index.html | 53 +++++++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 53 insertions(+)
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
metric
+serviceCheck
+
tag
client
@@ -296,6 +298,57 @@ is given "now" is used as the timestamp
+
+
+
serviceCheck
+
+
+
check(check, hostName, status, parameters, callback)
+
+
post an update to a service check
+
Parameters:
+
+- check
+the check name (e.g. "app.ok")
+
+- hostName
+the name of the host submitting the check
+
+- status
+one of dogapi.OK, dogapi.WARNING, dogapi.CRITICAL or dogapi.UNKNOWN
+
+- parameters
+optional, an object containing any of the following
+
+- timestamp: POSIX timestamp for when the check happened
+- message: string message to accompany the check
+- tags: an array of "tag:value"'s associated with the check
+
+
+- callback
+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);
+ });
+
+
+
+