modules/enterprise/remoting/cli/src/main/samples/modules/rhq.storage.sizing.js | 5 +++++ 1 file changed, 5 insertions(+)
New commits: commit 7c9f3e4f49b0fa7f2183277a60ebc1cfa5e73454 Author: John Sanda jsanda@redhat.com Date: Wed Dec 11 17:03:35 2013 -0500
adding some usage docs
diff --git a/modules/enterprise/remoting/cli/src/main/samples/modules/rhq.storage.sizing.js b/modules/enterprise/remoting/cli/src/main/samples/modules/rhq.storage.sizing.js index 77e78b7..77c22fd 100644 --- a/modules/enterprise/remoting/cli/src/main/samples/modules/rhq.storage.sizing.js +++ b/modules/enterprise/remoting/cli/src/main/samples/modules/rhq.storage.sizing.js @@ -5,6 +5,11 @@ * installs, some input, in terms of the numbers and types of resources, will have to be provided in order to generate * the estimates. Right now the module has functionality for generating the sizes of the data and partition index files * for the metrics tables (which does not include the metrics_index table). + * + * current usage (from CLI shell): + * + * $ storage = require('modules:/rhq.storage.sizing.js'); + * $ results = storage.sizeOfRawMetrics({30000: 5, 60000: 5}); */ (function() { var util = require('modules:/util');
rhq-commits@lists.fedorahosted.org