@ -100,6 +100,66 @@ Please run `dogapi --help` to see current usage documentation for the tool.
Every api method available in `dogapi` is exposed via the cli tool.
## Major changes from 1.x.x to 2.x.x
We have updated major versions for this library due to a backwards incompatible change to the argument format for `dogapi.metric.send` and `dogapi.metric.send_all`.
<dd><p>an array of metrics where each element is an object with the following keys</p>
<ul>
<li>metric: the name of the metric</li>
<li>points: a single datapoint or an array of [timestamp, datapoint] (same as<code>dogapi.metric.send</code>)</li>
<li>points: a single data point (e.g. <code>50</code>), an array of data points (e.g. <code>[50, 100]</code>) or an array of<code>[timestamp, value]</code> elements (e.g. <code>[[now, 50], [now, 100]]</code>)</li>
<li>tags: an array of "tag:value"'s</li>
<li>host: the source hostname to use for the metrics</li>
<li>metric_type: the type of metric to use ("gauge" or "counter") [default: gauge]</li>
@ -683,9 +686,13 @@ var now = parseInt(new Date().getTime() / 1000);