소스 검색

Better description

Andrew Cantino 9 년 전
부모
커밋
4dd4c1c6cf
2개의 변경된 파일2개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 0
      CHANGES.md
  2. 1 1
      app/models/agents/website_agent.rb

+ 1 - 0
CHANGES.md

@@ -1,5 +1,6 @@
 # Changes
 
+* Dec 26, 2015   - WebsiteAgent can accept a `data_from_event` Liquid template instead of a URL.
 * Oct 17, 2015   - TwitterSearchAgent added for running period Twitter searches.
 * Oct 17, 2015   - GapDetectorAgent added to alert when no data has been seen in a certain period of time.
 * Oct 12, 2015   - Slack agent supports attachments.

+ 1 - 1
app/models/agents/website_agent.rb

@@ -24,7 +24,7 @@ module Agents
 
       * If the Event contains a `url` key, that URL will be fetched.
       * For more control, you can set the `url_from_event` option and it will be used as a Liquid template to generate the url to access based on the Event.
-      * If you set `data_from_event` to the [JSONPath](http://goessner.net/articles/JsonPath/) of content in the Event, that will be used directly without fetching any URL.
+      * If you set `data_from_event` to a Liquid template, it will be used to generate the data directly without fetching any URL.  (For example, set it to `{{ html }}` to use HTML contained in the `html` key of the incoming Event.)
       * If you specify `merge` for the `mode` option, Huginn will retain the old payload and update it with the new values.
 
       # Supported Document Types