diff options
author | Richard Wall <richard@largo> | 2011-09-10 11:52:52 +0100 |
---|---|---|
committer | Richard Wall <richard@largo> | 2011-09-10 11:52:52 +0100 |
commit | 4c6febb4bfebf27bf98e4617755d40d8dcab1861 (patch) | |
tree | e241ea5e447271cca537c11c719bb496c36ae982 /docs/examples | |
parent | b404903c1d43af270a0349890f439b4e0637831e (diff) |
#846377 Pass transformer function to the RrdQuery and add a unit test
Diffstat (limited to 'docs/examples')
-rw-r--r-- | docs/examples/jarmon_example_recipes.js | 11 |
1 files changed, 11 insertions, 0 deletions
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) } }; |