examples/basic_sensor_data.rb in pulse-meter-0.1.8 vs examples/basic_sensor_data.rb in pulse-meter-0.1.9
- old
+ new
@@ -1,49 +1,49 @@
$: << File.join(File.absolute_path(__FILE__), '..', 'lib')
require "pulse-meter"
-
+
PulseMeter.redis = Redis.new
cfg = PulseMeter::Sensor::Configuration.new(
lama_count: {
- type: 'timelined/counter',
+ sensor_type:'timelined/counter',
args: {
annotation: 'Lama Count',
interval: 10,
ttl: 3600
}
},
lama_average_age: {
- type: 'timelined/average',
+ sensor_type:'timelined/average',
args: {
annotation: 'Lama Average Age',
interval: 20,
ttl: 3600
}
},
rhino_count: {
- type: 'timelined/counter',
+ sensor_type:'timelined/counter',
args: {
annotation: 'Rhino Count',
interval: 10,
ttl: 3600
}
},
goose_count: {
- type: 'timelined/hashed_counter',
+ sensor_type:'timelined/hashed_counter',
args: {
annotation: 'Goose Count',
interval: 10,
ttl: 3600
}
},
rhino_average_age: {
- type: 'timelined/average',
+ sensor_type:'timelined/average',
args: {
annotation: 'Rhino average age',
interval: 20,
ttl: 3600
}
\ No newline at end of file