fluent-plugin-amplitude 0.0.5 → 0.0.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +4 -0
- data/fluent-plugin-amplitude.gemspec +1 -1
- data/lib/fluent/plugin/out_amplitude.rb +2 -0
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: f9bc268ffa0a2a2c5702b54999f37d32fc32efcb
|
|
4
|
+
data.tar.gz: acdfb55e9cee0b966abd6de62397aa0bc568e875
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 3a6bc77c06db97d7c6400298a6ab3b32aba7eca8ab93e92c1c6a6e2eefcf6e2624a1ec23ddaf97c4753d94c52833244a929a8722798ca3969016c2c739dbce94
|
|
7
|
+
data.tar.gz: 56bc85e14ef038f6018dae12b4e5a3ec61ab6c24e8cbb435cbd3e465ded69e9ac787aa6174db0f741f9e1007b38bcdc0c42f781805e63cbc8aeaf4c0f24fad8e
|
data/README.md
CHANGED
|
@@ -27,6 +27,7 @@ $ sudo /usr/lib64/fluent/ruby/bin/fluent-gem install fluent-plugin-amplitude
|
|
|
27
27
|
event_properties current_source
|
|
28
28
|
properties_blacklist user
|
|
29
29
|
events_whitelist petition_view, petition_share
|
|
30
|
+
events_blacklist email_send
|
|
30
31
|
flush_interval 5s
|
|
31
32
|
retry_limit 2
|
|
32
33
|
remove_tag_prefix output.amplitude.
|
|
@@ -66,6 +67,9 @@ Any properties included in the blacklist will be scrubbed from the record.
|
|
|
66
67
|
#### events_whitelist
|
|
67
68
|
If your `<match>` is using a wildcard, you can specify specific events to whitelist. If the `events_whitelist` is empty all events will be sent to Amplitude. Note the event name here is the `event_type` (so should not include, e.g., any prefixes that were removed via `remove_tag_prefix`)
|
|
68
69
|
|
|
70
|
+
#### events_blacklist
|
|
71
|
+
If your `<match>` is using a wildcard, you can specify specific events to blacklist. If the `events_blacklist` is empty all events will be sent to Amplitude. Note the event name here is the `event_type` (so should not include, e.g., any prefixes that were removed via `remove_tag_prefix`). It probably only makes sense to use `events_whitelist` or `events_blacklist`.
|
|
72
|
+
|
|
69
73
|
#### Error handling
|
|
70
74
|
Any error will result in the message retrying. In the case of an incorrectly configured API key, this can result in the messages infinitely retrying. You should set the normal [buffered output plugin options](http://docs.fluentd.org/articles/buffer-plugin-overview) to prevent this (and to preserve data in the case of misconfigured records failing to be submitted to Amplitude).
|
|
71
75
|
|
|
@@ -4,7 +4,7 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
|
|
4
4
|
|
|
5
5
|
Gem::Specification.new do |spec|
|
|
6
6
|
spec.name = 'fluent-plugin-amplitude'
|
|
7
|
-
spec.version = '0.0.
|
|
7
|
+
spec.version = '0.0.6'
|
|
8
8
|
spec.authors = ['Vijay Ramesh']
|
|
9
9
|
spec.email = ['vijay@change.org']
|
|
10
10
|
spec.summary = 'Fluentd plugin to output event data to Amplitude'
|
|
@@ -14,6 +14,7 @@ module Fluent
|
|
|
14
14
|
config_param :event_properties, :array, default: nil
|
|
15
15
|
config_param :properties_blacklist, :array, default: nil
|
|
16
16
|
config_param :events_whitelist, :array, default: nil
|
|
17
|
+
config_param :events_blacklist, :array, default: nil
|
|
17
18
|
class AmplitudeError < StandardError
|
|
18
19
|
end
|
|
19
20
|
|
|
@@ -38,6 +39,7 @@ module Fluent
|
|
|
38
39
|
|
|
39
40
|
def format(tag, time, record)
|
|
40
41
|
return if @events_whitelist && !@events_whitelist.include?(tag)
|
|
42
|
+
return if @events_blacklist && @events_blacklist.include?(tag)
|
|
41
43
|
|
|
42
44
|
amplitude_hash = { event_type: tag }
|
|
43
45
|
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: fluent-plugin-amplitude
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.0.
|
|
4
|
+
version: 0.0.6
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Vijay Ramesh
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2016-11-
|
|
11
|
+
date: 2016-11-17 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: fluentd
|