From 4c6febb4bfebf27bf98e4617755d40d8dcab1861 Mon Sep 17 00:00:00 2001 From: Richard Wall Date: Sat, 10 Sep 2011 11:52:52 +0100 Subject: #846377 Pass transformer function to the RrdQuery and add a unit test --- docs/examples/jarmon_example_recipes.js | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'docs/examples/jarmon_example_recipes.js') diff --git a/docs/examples/jarmon_example_recipes.js b/docs/examples/jarmon_example_recipes.js index aa42d6f..7acfa8d 100644 --- a/docs/examples/jarmon_example_recipes.js +++ b/docs/examples/jarmon_example_recipes.js @@ -58,5 +58,16 @@ jarmon.CHART_RECIPES_COLLECTD = { ['data/interface/if_octets-wlan0.rrd', 'rx', 'Receive', 'bit/s', function (v) { return v*8; }] ], options: jQuery.extend(true, {}, jarmon.Chart.BASE_OPTIONS) + }, + + 'droprate': { + title: 'Ping Droprate', + data: [ + ['data/ping/ping_droprate-google.com.rrd', 0, + 'google.com', '%', function (v) { return v*100; }], + ['data/ping/ping_droprate-softlayer.com.rrd', 0, + 'softlayer.com', '%', function (v) { return v*100; }] + ], + options: jQuery.extend(true, {}, jarmon.Chart.BASE_OPTIONS) } }; -- cgit v1.2.3