fluent-plugin-festival 0.0.13 → 0.0.14
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 +4 -4
- data/fluent-plugin-festival.gemspec +1 -1
- data/lib/fluent/plugin/festival_proxy.rb +2 -2
- data/lib/fluent/plugin/in_festival.rb +2 -0
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5d500f4c07fed795058fb2c7ce17f9cce449ff7b
|
4
|
+
data.tar.gz: c6f425caa0db690af71863592f340abbf26aa094
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0bdd3ed96f11a5aa7552781b42caf589e08fac7f931ba65bcb79fe84ae1b84ecfad4a4d4d988597c8bd338cae8f812c7449e4eb304e6f44c73c6d058491ea99d
|
7
|
+
data.tar.gz: 91ef563a4b111943c5f133a6c144435e657f9c6695412b7b8e06e1d0c03f77f1cf33b4df0581beefc9a72d0e10ce84f6d84bbc62069fd412d1b79889a7f378ce
|
@@ -183,8 +183,8 @@ module Fluent::Plugin
|
|
183
183
|
{
|
184
184
|
"resourceName": resource.path,
|
185
185
|
"dataValue": JSON.parse(get_data_res.body)["response"]["value"],
|
186
|
-
"timestamp": JSON.parse(get_data_res.body)["response"]["timestamp"]
|
187
|
-
}
|
186
|
+
"timestamp": (Time.at(JSON.parse(get_data_res.body)["response"]["timestamp"].to_f/1000, JSON.parse(get_data_res.body)["response"]["timestamp"].to_f%1000*1000) if @use_sensor_time)
|
187
|
+
}.reject {|k, v| v.nil?}
|
188
188
|
else
|
189
189
|
return nil
|
190
190
|
end
|
@@ -23,6 +23,8 @@ module Fluent::Plugin
|
|
23
23
|
config_param :tag, :string
|
24
24
|
desc 'Polling interval to get message from FESTIVAL EaaS API'
|
25
25
|
config_param :polling_interval, :integer, default: 60
|
26
|
+
desc 'Use timestamp provided by a sensor (for sensinact only).'
|
27
|
+
config_param :use_sensor_time, :bool, default: false
|
26
28
|
|
27
29
|
# <resoruce> tag can be used for specifying multiple resources in a <source> tag
|
28
30
|
# If the user wants to specify different format or polling interval for each resource,
|