https://github.com/floraison/pollen
a set of flor hooks that emit over the http
https://github.com/floraison/pollen
flor hooks
Last synced: 8 months ago
JSON representation
a set of flor hooks that emit over the http
- Host: GitHub
- URL: https://github.com/floraison/pollen
- Owner: floraison
- License: mit
- Created: 2017-05-14T21:43:06.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2020-12-03T02:39:25.000Z (over 5 years ago)
- Last Synced: 2025-03-15T09:28:08.347Z (about 1 year ago)
- Topics: flor, hooks
- Language: Ruby
- Size: 3.91 KB
- Stars: 2
- Watchers: 4
- Forks: 1
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# pollen
Pollen provides a way for an external application to observe Flor's
behaviors using an HTTP interface. It's also a great showcase for Flor's
hooking facility (see [hooks.conf.sample](hooks.conf.sample)).
By default it will report the following events but those can be extended:
1. flow creation/launch
2. task return (aka reply and proceed)
3. flow termination
4. cancellation
5. errors
## Instructions
1. Clone the repository within Flor/Flack's `/lib/hooks` directory.
2. Copy the content of `hooks.json.sample` on
`/lib/hooks/hooks.json` to inform Flor about the new hooks.
This is where you can extend the events you want to monitor.
3. By default Pollen will contact your hook handler at
`http://localhost:3000/hookhandler/`. This can be controlled through
Flor/Flack's configuration (`/etc/conf.json`) as follow:
```
pollen_prot: "http"
pollen_host: "localhost"
pollen_port: "3000"
pollen_path: "hookhandler"
```
4. Enjoy!
## License
MIT, see [LICENSE.md](LICENSE.md)