Sha256: 767e437344c41c5e05dde830af5cb0d5b6b9cbbb3ef55c08344a28c00cd1bd91

Contents?: true

Size: 1.26 KB

Versions: 26

Compression:

Stored size: 1.26 KB

Contents

---
layout: page
title: Experimental Features
---

<div id="toc">
# "Multi-series Metrics":#multi-series
</div>

<div class="experimental">Experimental</div>

Everything on this page is work-in-progress towards some future release. Interested in picking up any of these features and developing them further?


h3(#multi-series).  Multi-series Metrics

Vanity 1.4 introduces some changes to the API to allow support for multi-series metrics. The intent is to allow more data to be captured and displayed using less metrics (i.e. charts).

First change to the @track!@ method, which now accepts a single value, array of values, or hash. Since incrementing the metric by one is quite common, this is still the default behavior when calling @track!@ with no arguments.

Next proposed change would allow the metric to define multiple columns. Those can be addressed by name or index, for example:

<pre>
metric :purchase do
  columns :count, :total
end
metric(:purchase).track! p.items.length. p.total
metric(:purchase).track! :total=>p.total, :count=>p.items.length
</pre>

The metric's @values@ method will have to be changed to return an array of arrays, or new method introduced to keep the API backward compatible. And, of course, UI modified to display multiple series in a single graph.

Version data entries

26 entries across 26 versions & 4 rubygems

Version Path
vanity-2.0.0.beta9 doc/experimental.textile
vanity-1.9.3 doc/experimental.textile
vanity-1.9.2 doc/experimental.textile
vanity-2.0.0.beta8 doc/experimental.textile
vanity-1.8.4 doc/experimental.textile
vanity-2.0.0.beta7 doc/experimental.textile
vanity-2.0.0.beta6 doc/experimental.textile
vanity-2.0.0.beta5 doc/experimental.textile
vanity-2.0.0.beta4 doc/experimental.textile
vanity-2.0.0.beta3 doc/experimental.textile
vanity-2.0.0.beta2 doc/experimental.textile
vanity-2.0.0.beta doc/experimental.textile
vanity-1.9.1 doc/experimental.textile
vanity-1.9.0 doc/experimental.textile
vanity-1.9.0.beta doc/experimental.textile
vanity-1.8.3 doc/experimental.textile
vanity-1.8.3.beta2 doc/experimental.textile
vanity-1.8.3.beta doc/experimental.textile
vanity-1.8.2 doc/experimental.textile
vanity-1.8.1 doc/experimental.textile