Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/kaakaa/fluent-plugin-lets-chat
Fluentd pluging for sdelements/lets-chat
https://github.com/kaakaa/fluent-plugin-lets-chat
Last synced: 23 days ago
JSON representation
Fluentd pluging for sdelements/lets-chat
- Host: GitHub
- URL: https://github.com/kaakaa/fluent-plugin-lets-chat
- Owner: kaakaa
- License: mit
- Created: 2015-04-26T12:03:39.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2015-05-27T14:36:57.000Z (over 9 years ago)
- Last Synced: 2024-04-14T18:21:33.293Z (9 months ago)
- Language: Ruby
- Homepage:
- Size: 156 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
# Fluent::Plugin::Lets::Chat
## Installation
Add this line to your application's Gemfile:
```
git clone https://github.com/kaakaa/fluent-plugin-lets-chat.git
cd fluent-plugin-lets-chat
bundle install
bundle exec rake build
td-agent-gem install pkg/fluent-plugin-lets-chat-0.0.1.gem
```## Usage
```
type lets_chat_http
port 8888
json_key payloadtype lets_chat
# Let's Chat settings
lcb_host LETS_CHAT_HOST
lcb_port LETS_CHAT_PORT
lcb_room LETS_CHATROOM_NAME
lcb_user_token LETS_CHAT_USER_TOKEN
lcb_user_password LETS_CHAT_USER_PASSWORD# get values from json data in post parameter
#
# EXAMPLE
#
# REQUEST_JSON:
# {
# "key1":"value1",
# "key2": {
# "nest2_1":"value2_1",
# "nest2_2":"value2_2"
# },
# "key3":"value3"
# }
#
# GET_VALUES:
# key1: value1
# key2:nest2_1: value2_1
lcb_keys key1,key2:nest2_1```
## Contributing
1. Fork it ( https://github.com/[my-github-username]/fluent-plugin-lets-chat/fork )
2. Create your feature branch (`git checkout -b my-new-feature`)
3. Commit your changes (`git commit -am 'Add some feature'`)
4. Push to the branch (`git push origin my-new-feature`)
5. Create a new Pull Request