Changes between Version 18 and Version 19 of GIMIv1.1Tutorial/Orchestrate
- Timestamp:
- 10/15/12 12:48:09 (12 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
GIMIv1.1Tutorial/Orchestrate
v18 v19 85 85 86 86 defApplication('ping_app', 'pingmonitor') do |a| 87 a.path = "/root/pingWrap.rb" 87 a.path = "/root/pingWrap.rb" 88 88 a.version(1, 2, 0) 89 a.shortDescription = "Wrapper around ping" 89 a.shortDescription = "Wrapper around ping" 90 90 a.description = "ping application" 91 91 a.defProperty('dest_addr', 'Address to ping', '-a', {:type => :string, :dynamic => false}) 92 a.defProperty('count', 'Number of times to ping', '-c', {:type => :integer, :dynamic => false}) 92 a.defProperty('count', 'Number of times to ping', '-c', {:type => :integer, :dynamic => false}) 93 93 a.defProperty('interval', 'Interval between pings in s', '-i', {:type => :integer, :dynamic => false}) 94 94 95 95 a.defMeasurement('myping') do |m| 96 m.defMetric('dest_addr',:string) 96 m.defMetric('dest_addr',:string) 97 97 m.defMetric('ttl',:int) 98 98 m.defMetric('rtt',:float) … … 117 117 end 118 118 119 120 119 defGroup('Source2', property.source2) do |node| 121 120 node.addApplication("ping_app") do |app| … … 172 171 173 172 defGroup('Source4', property.source4) do |node| 173 174 174 node.addApplication("ping_app") do |app| 175 175 app.setProperty('dest_addr', property.sinkaddr41)