wiki:Old/Athstats/ScriptsRepository/ProtoDefAthstats

Version 1 (modified by kishore, 19 years ago) ( diff )

Orbit > Athstats > Scripts Repository > driverqueryapp.rb

#
# Define a prototype
#
require 'handler/prototype'
require 'handler/filter'
require 'handler/appDefinition'

p = Prototype.create("test:proto:driverqueryapp")
p.name = "Wireless Driver Stats"
p.description = "Statistics obtained by querying the driver periodically"
p.defProperty('interface', 'interface to gather stats from')
p.defProperty('interval', 'How often to query the driver')

athstats = p.addApplication(:athstats, "test:app:athstats")
athstats.bindProperty('interface')
athstats.bindProperty('interval')

athstats.addMeasurement('queryport',  Filter::SAMPLE,
  {Filter::SAMPLE_SIZE => 1},
  [
    ['succ_tx_attempts'],
    ['fail_xretries'],
    ['total_frames_rcvd']
  ]
)

if $0 == __FILE__
  p.to_xml.write($stdout, 2)
  puts
end

Note: See TracWiki for help on using the wiki.