Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@ By default it will report the following events but those can be extended:
2. Copy the content of `hooks.json.sample` on
`<env>/lib/hooks/hooks.json` to inform Flor about the new hooks.
This is where you can extend the events you want to monitor.
- Remember to keep the quotes around `points` (e.g. `point: "return"`) to
avoid issues with reserved keywords.
3. By default Pollen will contact your hook handler at
`http://localhost:3000/hookhandler/`. This can be controlled through
Flor/Flack's configuration (`<env>/etc/conf.json`) as follow:
Expand Down
6 changes: 3 additions & 3 deletions hooks.json.sample
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[
{ point: execute, consumed: true, nid: '0', require: 'pollen/pollen.rb', class: 'LaunchedPollenHook' },
{ point: return, consumed: true, require: 'pollen/pollen.rb', class: 'ReturnedPollenHook' },
{ point: terminated, consumed: true, require: 'pollen/pollen.rb', class: 'TerminatedPollenHook' },
{ point: "execute", consumed: true, nid: '0', require: 'pollen/pollen.rb', class: 'LaunchedPollenHook' },
{ point: "return", consumed: true, require: 'pollen/pollen.rb', class: 'ReturnedPollenHook' },
{ point: "terminated", consumed: true, require: 'pollen/pollen.rb', class: 'TerminatedPollenHook' },
{ error: true, require: 'pollen/pollen.rb', class: 'ErrorPollenHook' },
{ cancel: true, require: 'pollen/pollen.rb', class: 'CancelPollenHook' }
]