Changes between Version 2 and Version 3 of Old/Athstats/ScriptsRepository/ProtoDefAthstats
- Timestamp:
- Feb 10, 2006, 4:11:28 PM (19 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Old/Athstats/ScriptsRepository/ProtoDefAthstats
v2 v3 1 1 [wiki:WikiStart Orbit] > [wiki:Athstats Athstats] > [wiki:Athstats/ScriptsRepository Scripts Repository] > driverqueryapp.rb 2 3 This prototype file translates to running an application, defined by the test_app_athstats.rb or test/app/athstats.rb file. This application has two command-line arguments (--interface and --interval) defined by the bindProperty statement below. It reports three metrics, defined by the addMeasurement statement. 2 4 3 5 {{{ … … 17 19 18 20 athstats = p.addApplication('athstats', "test:app:athstats") 21 22 # Command-line arguments for the application. 19 23 athstats.bindProperty('interface') 20 24 athstats.bindProperty('interval') 21 25 26 # Metrics reported. 22 27 athstats.addMeasurement('queryport', Filter::SAMPLE, 23 28 {Filter::SAMPLE_SIZE => 1},