sk-fluent-plugin-azureeventhubs 0.0.4 → 0.0.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/fluent-plugin-azureeventhubs.gemspec +1 -1
- data/lib/fluent/plugin/azureeventhubs/http.rb +2 -2
- 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: b1710dc48eb2f23198df380dbb8ebd5b9ffa66a63b41591fa2f71424ebfbd610
|
4
|
+
data.tar.gz: 1a476efe8814488ffc12c28448b1ef2b5b0aa686a2639154d7e20297645fd24b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 17d7657a7adf4fee783a88363bc8821e661fd11ed0d75b36a02d27dcbc8580f883413a9ad2eb8215309fa4e3066beeafede1b827d7c89c5511d5a7f9fe1c4c21
|
7
|
+
data.tar.gz: a1f61b38ca7666149f608bba38e802ae289ce0f3a304d4688a5371eb74f1c2a473455716b4200b54c5d877fcdb3803340902612a48908ccba69cc9be204c6c7e
|
@@ -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 = "sk-fluent-plugin-azureeventhubs"
|
7
|
-
spec.version = "0.0.
|
7
|
+
spec.version = "0.0.5"
|
8
8
|
spec.authors = ["Hidemasa Togashi", "Toddy Mladenov", "Justin Seely"]
|
9
9
|
spec.email = ["togachiro@gmail.com", "toddysm@gmail.com"]
|
10
10
|
spec.summary = "Fluentd output plugin for Azure Event Hubs"
|
@@ -49,11 +49,11 @@ class AzureEventHubsHttpSender
|
|
49
49
|
|
50
50
|
def send_w_properties(payload, properties)
|
51
51
|
token = generate_sas_token(@uri.to_s)
|
52
|
-
Unirest.post "
|
52
|
+
Unirest.post "https://#{@uri.to_s}?timeout=60&api-version=2014-01",
|
53
53
|
headers:{ 'Content-Type' => 'application/atom+xml;type=entry;charset=utf-8',
|
54
54
|
'Authorization' => token
|
55
55
|
},
|
56
|
-
parameters: payload.
|
56
|
+
parameters: payload.to_s {|response|
|
57
57
|
response.code
|
58
58
|
}
|
59
59
|
end
|