fluent-plugin-azureeventhubs-batched 0.0.8 → 0.0.9

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
  SHA256:
3
- metadata.gz: 56119b705cc8a8abc11097ddeef4f572b6a36a814b96326e3b065c634d7f3c75
4
- data.tar.gz: 86ef4b5652e291f9a599eeee5c07b5b41d0b586d1d2270c6a8dd760a325111ad
3
+ metadata.gz: f36727e48c39eb67469e865e43b44d0d5997583bc51d9fa6ef2dfee1a0eff211
4
+ data.tar.gz: 5cdd385a291dbd12c9a440dc9a95aa3b9d02cfd9db0a6e6c192a64113a0ea153
5
5
  SHA512:
6
- metadata.gz: 3cc921cddf45da51aea44aa9a2c725cb921800aa1e49e7b6747f79e8a603441d8238c0ab1e831320663aae58d2e3c913f1551af588f84d7b92a24a1db85aab77
7
- data.tar.gz: 45d27618bdf9f127342509124093e12b71a853c89b072ad2fadff23ab2260b562f6f55c6ed11f9fedc8275310b5546569ab15d01abffe0376f62205d32c97895
6
+ metadata.gz: 43151ef704de7b2a9c12d5044779cfa3a9c8d8b53cd5bef82edb348b8d5e8c89776db1f403f89f22d52da50de8ff63d8cdd97ad0a59e1baeaafb6385ad83279d
7
+ data.tar.gz: d7e32f7eabcf0aa70cffc0d7e04ae0d3beba3760763f5d43bf357f087ea377601e47cae006ff86a62a01f60a6ded7d81187ec5f43c7a95afb240e9e97d601e15
data/README.md CHANGED
@@ -1,13 +1,14 @@
1
1
  # Fluent::Plugin::Azureeventhubs
2
2
 
3
3
  Azure Event Hubs buffered output plugin for Fluentd.
4
+ This fork repo is for batch function.
4
5
 
5
6
  ## Installation
6
7
 
7
8
  Add this line to your application's Gemfile:
8
9
 
9
10
  ```ruby
10
- gem 'fluent-plugin-azureeventhubs'
11
+ gem 'fluent-plugin-azureeventhubs-batched'
11
12
  ```
12
13
 
13
14
  And then execute:
@@ -16,7 +17,7 @@ And then execute:
16
17
 
17
18
  Or install it yourself as:
18
19
 
19
- $ gem install fluent-plugin-azureeventhubs
20
+ $ gem install fluent-plugin-azureeventhubs-batched
20
21
 
21
22
  ## Configuration
22
23
 
@@ -42,6 +43,32 @@ Or install it yourself as:
42
43
  </match>
43
44
  ```
44
45
 
46
+ ## Batch mode
47
+ Change batch format after V0.0.9 to align with Azure Eventhub documents.
48
+ [Eventhub batch events](https://docs.microsoft.com/en-us/rest/api/eventhub/send-batch-events)
49
+
50
+ # Version >= v0.0.9
51
+
52
+ ```
53
+ [
54
+ { "Body": "msg" },
55
+ { "Body": "msg" },
56
+ ...
57
+ ]
58
+ ```
59
+
60
+ # Version < v0.0.9
61
+ ```
62
+ {
63
+ "records": [
64
+ { "Body": "msg" },
65
+ { "Body": "msg" },
66
+ ...
67
+ ]
68
+ }
69
+ ```
70
+
71
+
45
72
  ## Contributing
46
73
 
47
74
  1. Fork it ( https://github.com/[my-github-username]/fluent-plugin-azureeventhubs/fork )
@@ -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-azureeventhubs-batched"
7
- spec.version = "0.0.8"
7
+ spec.version = "0.0.9"
8
8
  spec.authors = ["Hidemasa Togashi", "Toddy Mladenov", "Justin Seely", "Chih Hsiang Hsu"]
9
9
  spec.email = ["togachiro@gmail.com", "toddysm@gmail.com", "s8901489@gmail.com"]
10
10
  spec.summary = "Fluentd output plugin for Azure Event Hubs"
@@ -76,7 +76,7 @@ module Fluent::Plugin
76
76
  }
77
77
 
78
78
  records.each_slice(@max_batch_size).each { |group|
79
- payload = { "records" => group }
79
+ payload = group
80
80
  @sender.send_w_properties(payload, @message_properties)
81
81
  }
82
82
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fluent-plugin-azureeventhubs-batched
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.8
4
+ version: 0.0.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - Hidemasa Togashi
@@ -11,7 +11,7 @@ authors:
11
11
  autorequire:
12
12
  bindir: bin
13
13
  cert_chain: []
14
- date: 2021-04-09 00:00:00.000000000 Z
14
+ date: 2021-04-20 00:00:00.000000000 Z
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency
17
17
  name: bundler