From b9c430f4910fa32e3f2d59333c0b19db8bd96e97 Mon Sep 17 00:00:00 2001 From: brettlangdon Date: Fri, 18 Mar 2016 14:05:20 -0400 Subject: [PATCH] update docs --- index.html | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/index.html b/index.html index ff619f0..403047c 100644 --- a/index.html +++ b/index.html @@ -687,7 +687,7 @@ or an array of [timestamp, value] elements (e.g. [[now, 50],
callback
@@ -712,7 +712,7 @@ var now = parseInt(new Date().getTime() / 1000); dogapi.metric.send("my.metric", [[now, 1000]], function(err, results){ console.dir(results); }); -dogapi.metric.send("my.counter", 5, {type: "counter"}, function(err, results){ +dogapi.metric.send("my.counter", 5, {type: "count"}, function(err, results){ console.dir(results); });
@@ -731,7 +731,7 @@ dogapi.metric.send("my.counter", 5, {type: "counter"}, funct
  • points: a single data point (e.g. 50), an array of data points (e.g. [50, 100]) or an array of [timestamp, value] elements (e.g. [[now, 50], [now, 100]])
  • tags: an array of "tag:value"'s
  • host: the source hostname to use for the metrics
  • -
  • metric_type|type: the type of metric to use ("gauge" or "counter") [default: gauge]
  • +
  • metric_type|type: the type of metric to use ("gauge" or "count") [default: gauge]
  • callback