README.md in app_monit-0.0.5 vs README.md in app_monit-0.0.6
- old
+ new
@@ -42,10 +42,18 @@
```ruby
AppMonit::Config.enabled = false
```
+Default timeout for HTTP requests is 1 second to prevent stalling the application when sending events.
+To change this setting use the `.timeout` option (default: 1). When set to 0 it falls back to the default HTTP timeout of 60 seconds.
+
+```ruby
+AppMonit::Config.timeout = 10
+```
+
+
### Create an event
```ruby
event_name = 'authentication'
payload_hash = { user: { id: 1, name: 'John' } }
@@ -189,9 +197,14 @@
| gte | greater than or equal to |
| exists | exists |
| in | in |
| nin | not in |
+### Extra query params
+
+You can also specify the environment and API key through the parameters
+
+AppMonit::Query.count('registered', ap_key: 'KEY', environment: 'ENV')
## Contributing
1. Fork it ( http://github.com/[my-github-username]/app_monit/fork )
2. Create your feature branch (`git checkout -b my-new-feature`)