Changes between Initial Version and Version 1 of Old/Athstats/ScriptsRepository/ProtoDefAthstats


Ignore:
Timestamp:
Feb 10, 2006, 12:17:45 AM (18 years ago)
Author:
kishore
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Old/Athstats/ScriptsRepository/ProtoDefAthstats

    v1 v1  
     1[wiki:WikiStart Orbit] > [wiki:Athstats Athstats] > [wiki:Athstats/ScriptsRepository Scripts Repository] > driverqueryapp.rb
     2
     3{{{
     4
     5#
     6# Define a prototype
     7#
     8require 'handler/prototype'
     9require 'handler/filter'
     10require 'handler/appDefinition'
     11
     12p = Prototype.create("test:proto:driverqueryapp")
     13p.name = "Wireless Driver Stats"
     14p.description = "Statistics obtained by querying the driver periodically"
     15p.defProperty('interface', 'interface to gather stats from')
     16p.defProperty('interval', 'How often to query the driver')
     17
     18athstats = p.addApplication(:athstats, "test:app:athstats")
     19athstats.bindProperty('interface')
     20athstats.bindProperty('interval')
     21
     22athstats.addMeasurement('queryport',  Filter::SAMPLE,
     23  {Filter::SAMPLE_SIZE => 1},
     24  [
     25    ['succ_tx_attempts'],
     26    ['fail_xretries'],
     27    ['total_frames_rcvd']
     28  ]
     29)
     30
     31if $0 == __FILE__
     32  p.to_xml.write($stdout, 2)
     33  puts
     34end
     35
     36}}}