fluent-plugin-label-router 0.1.1 → 0.1.3

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 1957bbbbc42c7966a4b13b7ca4347ba5491f8fbc
4
- data.tar.gz: 33af7357d50c2b66825ef2279a5c696fca1c018f
3
+ metadata.gz: 752b0fee18d27194a9e3173eaa789626d9a27e43
4
+ data.tar.gz: c99654113f3b085822b50ca9491cfb99e5e55b55
5
5
  SHA512:
6
- metadata.gz: df00c73549188cf88aa517ce3e7d3aff5b16eecca7b52ebf82854cc5272ce172dc86bd35501bfd1bde5142eac7f2927406f4d3b37d60e4dccb0d0137be12ba6d
7
- data.tar.gz: 243b416415482b10f4f1072afb9a3f2dcb5523262faa1ab545bb9a0d36596fad46be5b36cb8be33e39d288ad322166711bba38d21c1e85353d5fb1ef3f96342d
6
+ metadata.gz: b28bb46f96513f43f029e956c06b4262ffc0afe50ab7e70a380acf87751081a827a42b0060349c31811bf1bf71c188bc21b6f726c4c0ee1b9f7d7cebb7705c53
7
+ data.tar.gz: 91a600e6105e278407b9d423ea7baf4547c2da741ecd044c9b4be0b7db436a032f6916e89688230c1376945db0c3379df73e8761cdc50b1577c4b3bd97369270
data/README.md CHANGED
@@ -52,6 +52,8 @@ The configuration builds from `<route>` sections.
52
52
  | namespace | Namespaces definition to filter the record. Ignored if left empty. | "" |
53
53
  | @label | New @LABEL if selectors matched | nil |
54
54
  | tag | New tag if selectors matched | "" |
55
+ | emit_mode | Emit mode. If `batch`, the plugin will emit events per labels matched. Enum: record, batch | batch |
56
+ | sticky_tags | Sticky tags will match only one record from an event stream. The same tag will be treated the same way | true |
55
57
 
56
58
  ## Examples
57
59
 
@@ -3,7 +3,7 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
3
3
 
4
4
  Gem::Specification.new do |spec|
5
5
  spec.name = "fluent-plugin-label-router"
6
- spec.version = "0.1.1"
6
+ spec.version = "0.1.3"
7
7
  spec.authors = ["Banzai Cloud"]
8
8
  spec.email = ["info@banzaicloud.com"]
9
9
 
@@ -80,7 +80,7 @@ module Fluent
80
80
  if @route_map.has_key?(tag)
81
81
  # We already matched with this tag send events to the routers
82
82
  @route_map[tag].each do |r|
83
- r.emit_es(tag, es)
83
+ r.emit_es(tag, es.dup)
84
84
  end
85
85
  return
86
86
  end
@@ -97,13 +97,13 @@ module Fluent
97
97
  if @batch
98
98
  event_stream[r].add(time, record)
99
99
  else
100
- r.emit(tag, time, record)
100
+ r.emit(tag, time, record.dup)
101
101
  end
102
102
  end
103
103
  end
104
104
  if @batch
105
105
  event_stream.each do |r, es|
106
- r.emit_es(tag, es)
106
+ r.emit_es(tag, es.dup)
107
107
  end
108
108
  end
109
109
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fluent-plugin-label-router
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Banzai Cloud
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-10-14 00:00:00.000000000 Z
11
+ date: 2019-11-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler