diff --git a/index.html b/index.html index 1936402..ff619f0 100644 --- a/index.html +++ b/index.html @@ -687,7 +687,7 @@ or an array of [timestamp, value] elements (e.g. [[now, 50],
callback
@@ -712,6 +712,9 @@ 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){ + console.dir(results); +});
@@ -728,7 +731,7 @@ dogapi.metric.send("my.metric", [[now, 1000]], function(err, results){
  • 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: the type of metric to use ("gauge" or "counter") [default: gauge]
  • +
  • metric_type|type: the type of metric to use ("gauge" or "counter") [default: gauge]
  • callback