123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189 |
- jane_website_agent:
- type: Agents::WebsiteAgent
- user: jane
- events_count: 1
- schedule: "5pm"
- name: "ZKCD"
- guid: <%= SecureRandom.hex %>
- options: <%= {
- :url => "http://trailers.apple.com/trailers/home/rss/newtrailers.rss",
- :expected_update_period_in_days => 2,
- :mode => :on_change,
- :extract => {
- :title => {:css => "item title", :value => 'string(.)'},
- :url => {:css => "item link", :value => 'string(.)'}
- }
- }.to_json.inspect %>
- bob_website_agent:
- type: Agents::WebsiteAgent
- user: bob
- events_count: 1
- schedule: "midnight"
- name: "ZKCD"
- guid: <%= SecureRandom.hex %>
- options: <%= {
- :url => "http://xkcd.com",
- :expected_update_period_in_days => 2,
- :mode => :on_change,
- :extract => {
- :url => {:css => "#comic img", :value => "@src"},
- :title => {:css => "#comic img", :value => "@title"}
- }
- }.to_json.inspect %>
- bob_disabled_website_agent:
- type: Agents::WebsiteAgent
- disabled: true
- user: bob
- events_count: 1
- schedule: "midnight"
- name: "Disabled Agent"
- guid: <%= SecureRandom.hex %>
- options: <%= {
- :url => "http://xkcd.com",
- :expected_update_period_in_days => 2,
- :mode => :on_change,
- :extract => {
- :url => {:css => "#comic img", :value => "@src"},
- :title => {:css => "#comic img", :value => "@title"}
- }
- }.to_json.inspect %>
- bob_weather_agent:
- type: Agents::WeatherAgent
- user: bob
- schedule: "midnight"
- name: "SF Weather"
- guid: <%= SecureRandom.hex %>
- keep_events_for: <%= 45.days %>
- options: <%= { :location => "37.779329,-122.41915", :api_key => 'test' }.to_json.inspect %>
- bob_formatting_agent:
- type: Agents::EventFormattingAgent
- user: bob
- name: "Formatting Agent"
- guid: <%= SecureRandom.hex %>
- keep_events_for: <%= 45.days %>
- options: <%= { instructions: {}, mode: 'clean' }.to_json.inspect %>
- jane_weather_agent:
- type: Agents::WeatherAgent
- user: jane
- schedule: "midnight"
- name: "SF Weather"
- guid: <%= SecureRandom.hex %>
- keep_events_for: <%= 30.days %>
- options: <%= { :location => "37.779329,-122.41915", :api_key => 'test' }.to_json.inspect %>
- jane_rain_notifier_agent:
- type: Agents::TriggerAgent
- user: jane
- name: "Jane's Rain Watcher"
- guid: <%= SecureRandom.hex %>
- options: <%= {
- :expected_receive_period_in_days => "2",
- :rules => [{
- :type => "regex",
- :value => "rain",
- :path => "conditions"
- }],
- :message => "Just so you know, it looks like '{{conditions}}' tomorrow in {{location}}"
- }.to_json.inspect %>
- bob_rain_notifier_agent:
- type: Agents::TriggerAgent
- user: bob
- name: "Bob's Rain Watcher"
- guid: <%= SecureRandom.hex %>
- options: <%= {
- :expected_receive_period_in_days => "2",
- :rules => [{
- :type => "regex",
- :value => "rain",
- :path => "conditions"
- }],
- :message => "Just so you know, it looks like '{{conditions}}' tomorrow in {{location}}"
- }.to_json.inspect %>
- bob_twitter_user_agent:
- type: Agents::TwitterUserAgent
- user: bob
- name: "Bob's Twitter User Watcher"
- guid: <%= SecureRandom.hex %>
- options: <%= {
- :username => "tectonic",
- :expected_update_period_in_days => "2",
- :consumer_key => "---",
- :consumer_secret => "---",
- :oauth_token => "---",
- :oauth_token_secret => "---"
- }.to_json.inspect %>
- tectonic_twitter_user_agent:
- type: Agents::TwitterFavorites
- user: tectonic
- name: "tectonic's Twitter Favorites Watcher"
- guid: <%= SecureRandom.hex %>
- options: <%= {
- :username => "tectonic",
- :expected_update_period_in_days => "2",
- :consumer_key => "---",
- :consumer_secret => "---",
- :oauth_token => "---",
- :oauth_token_secret => "---"
- }.to_json.inspect %>
- bob_manual_event_agent:
- type: Agents::ManualEventAgent
- user: bob
- name: "Bob's event testing agent"
- guid: <%= SecureRandom.hex %>
- bob_twitter_user_agent:
- type: Agents::TwitterUserAgent
- user: bob
- name: "bob tweets agent"
- service: generic
- guid: <%= SecureRandom.hex %>
- options: <%= {
- username: 'bob',
- expected_update_period_in_days: 2,
- }.to_json.inspect %>
- bob_csv_agent:
- type: Agents::CsvAgent
- user: bob
- name: "Bob's CsvAgent"
- guid: <%= SecureRandom.hex %>
- jane_twitter_user_agent:
- type: Agents::TwitterUserAgent
- user: jane
- name: "jane tweets agent"
- service: generic
- guid: <%= SecureRandom.hex %>
- options: <%= {
- username: 'jane',
- expected_update_period_in_days: 2,
- }.to_json.inspect %>
- bob_data_output_agent:
- type: Agents::DataOutputAgent
- user: bob
- name: RSS Feed
- guid: <%= SecureRandom.hex %>
- options: <%= {
- expected_receive_period_in_days: 3,
- secrets: ['secret'],
- template: {
- title: 'unchanged',
- description: 'unchanged',
- item: {
- title: 'unchanged',
- description: 'unchanged',
- author: 'unchanged',
- link: 'http://example.com'
- }
- }
- }.to_json.inspect %>
|