sk-fluent-plugin-azureeventhubs 0.0.15 → 0.0.16
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +1 -0
- data/aync-fluent-plugin-azureeventhubs.gemspec +1 -1
- data/lib/fluent/plugin/out_azureeventhubs_buffered.rb +21 -0
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3819d43eaf63a928a42b3f61a80d7b37fefa16e9010af94c903b0ea18f89dfdc
|
4
|
+
data.tar.gz: '022194cb4e46221e0ecaca42a6319d34eff1c5ae94343fc9967a6a17103fcbee'
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b3fb80437e3647aec7b143be2b9d8be7a95f98c97dec2991cb3bff31c7d4de532ad1d952145b6e0226e014b91d9770f961b803cd07d79f71194f8712df71c940
|
7
|
+
data.tar.gz: 12cb4ca72551ee6b1edee3ff5cc781d2cf12716aceee91893d30b020b5ff95de4e0a052c8b57cdcd70cc33e46a377f3cc825b315b147c08263c2153dc0b6ec09
|
data/README.md
CHANGED
@@ -2,6 +2,7 @@
|
|
2
2
|
|
3
3
|
[![Build Status](https://travis-ci.com/sio2k/async-fluent-plugin-azureeventhubs-.svg?branch=master)](https://travis-ci.com/sio2k/async-fluent-plugin-azureeventhubs-)
|
4
4
|
[![Known Vulnerabilities](https://snyk.io/test/github/sio2k/async-fluent-plugin-azureeventhubs/badge.svg?targetFile=Gemfile.lock)](https://snyk.io/test/github/sio2k/async-fluent-plugin-azureeventhubs?targetFile=Gemfile.lock)
|
5
|
+
[![Gem Downloads](https://img.shields.io/gem/dt/sk-fluent-plugin-azureeventhubs.svg)](https://rubygems.org/gems/sk-fluent-plugin-azureeventhubs)
|
5
6
|
[![MIT licensed](https://img.shields.io/badge/license-MIT-blue.svg)](https://github.com/sio2k/async-fluent-plugin-azureeventhubs-/blob/master/LICENSE)
|
6
7
|
Inspired by https://github.com/htgc/fluent-plugin-azureeventhubs
|
7
8
|
|
@@ -15,7 +15,7 @@ Gem::Specification.new do |spec|
|
|
15
15
|
spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
|
16
16
|
spec.require_paths = ["lib"]
|
17
17
|
spec.name = "sk-fluent-plugin-azureeventhubs"
|
18
|
-
spec.version = "0.0.
|
18
|
+
spec.version = "0.0.16"
|
19
19
|
spec.required_ruby_version = ">= 2.1.0"
|
20
20
|
|
21
21
|
spec.add_development_dependency "bundler", "~> 1.7"
|
@@ -1,3 +1,8 @@
|
|
1
|
+
require "fluent/plugin/output"
|
2
|
+
require 'fluent/output'
|
3
|
+
require 'fluent/output_chain'
|
4
|
+
require 'fluent/plugin/buffer'
|
5
|
+
|
1
6
|
module Fluent::Plugin
|
2
7
|
|
3
8
|
class AzureEventHubsOutputBuffered < Fluent::BufferedOutput
|
@@ -25,6 +30,22 @@ module Fluent::Plugin
|
|
25
30
|
config_set_default :chunk_keys, ['tag']
|
26
31
|
end
|
27
32
|
|
33
|
+
def initialize
|
34
|
+
super
|
35
|
+
end
|
36
|
+
|
37
|
+
def start
|
38
|
+
super
|
39
|
+
end
|
40
|
+
|
41
|
+
def shutdown
|
42
|
+
super
|
43
|
+
end
|
44
|
+
|
45
|
+
def prefer_buffered_processing
|
46
|
+
true
|
47
|
+
end
|
48
|
+
|
28
49
|
def configure(conf)
|
29
50
|
compat_parameters_convert(conf, :buffer, :inject)
|
30
51
|
super
|