fluent-plugin-druid-query 0.1.0 → 0.1.1

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: b7f48569a86b78098f0812de6faa379b9283be299ac6c47453ca350c8f0b0949
4
- data.tar.gz: 0c29a75b0c0453af8e3d259abbdf67f1990da423040d4a842228dabd7116a62c
3
+ metadata.gz: 9dc93ee40bd95bc5fedaf9185053a191c30184d588ce54afe19cd7061158226a
4
+ data.tar.gz: 6ed73c0a6d7bddffe8a4ad59a53749010a74629da2b63c77ffaec21391f9d5f0
5
5
  SHA512:
6
- metadata.gz: 9e819e437a270b9f805eeb4eb9aa7f2abaec99af50d3d53eb2aa5860b713a742843416f1bf0f502c00a54c9b89f7cce97ab0297e7e2398419111276956c7687c
7
- data.tar.gz: 3c42d62aafec87f21f220ddb8788cb7292708527cfe99a6e2ac1adbd4279af1b64020bf5df0541dfc914f8def892ff9936c895bb6b7f27da1e4240cf4b844593
6
+ metadata.gz: b75c404ac240a359e62c05bd454ff1f74f8ade07fc9cca91c4a950758cb683e96cc705855095628c6a44839d0b73195f55932e260b234774727017b3c447b892
7
+ data.tar.gz: f92b71ec45b7efe0090e6333402318d733d30bcf6314a8736737ab6d63c455c4f9b1f0dc83a4afeae16165505b408ca70f69d0937d1f9d4567bb1da38ba270ee
@@ -160,9 +160,10 @@ module Fluent
160
160
  'timestamp' => query_time.to_time.utc.iso8601(3),
161
161
  'status' => response.success? ? 'success' : 'failure',
162
162
  'status_code' => response.status_code,
163
- 'query_duration' => response.duration,
164
- 'response_rows_count' => response.body.size
165
- }.merge(query.metadata)
163
+ 'query_duration' => response.duration
164
+ }
165
+ info_record.update({ 'response_rows_count' => response.body.size }) if response.success?
166
+ info_record.update(query.metadata)
166
167
  router.emit(current_tag, query_time, info_record)
167
168
  end
168
169
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fluent-plugin-druid-query
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Thomas Tych