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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: bbcf0080a756a3a28db069b2a68035e09c77333e
4
- data.tar.gz: 61642c76c8f8f002f25c1f8531faea27c987dbe4
3
+ metadata.gz: 5d500f4c07fed795058fb2c7ce17f9cce449ff7b
4
+ data.tar.gz: c6f425caa0db690af71863592f340abbf26aa094
5
5
  SHA512:
6
- metadata.gz: 462dd1a294995d5d706444df5fada12ea58fd3da35e3f7830dc4cb8b745a5896e4db997a0616542d2ddfcfe08e3e564bb8ae82a09770788385ffc6f57930afa7
7
- data.tar.gz: b5275ddc0aba66472bfc1bc9acc82d69a36255f78e54fcd0fb2a0028d700dd57dc429e1281fde1f54fd5209c1747dc90b8f7e8ca39a3049d4e362cdea8d25cab
6
+ metadata.gz: 0bdd3ed96f11a5aa7552781b42caf589e08fac7f931ba65bcb79fe84ae1b84ecfad4a4d4d988597c8bd338cae8f812c7449e4eb304e6f44c73c6d058491ea99d
7
+ data.tar.gz: 91ef563a4b111943c5f133a6c144435e657f9c6695412b7b8e06e1d0c03f77f1cf33b4df0581beefc9a72d0e10ce84f6d84bbc62069fd412d1b79889a7f378ce
@@ -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-festival"
7
- spec.version = "0.0.13"
7
+ spec.version = "0.0.14"
8
8
  spec.authors = ["Toyokazu Akiyama"]
9
9
  spec.email = ["toyokazu@gmail.com"]
10
10
 
@@ -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,
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fluent-plugin-festival
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.13
4
+ version: 0.0.14
5
5
  platform: ruby
6
6
  authors:
7
7
  - Toyokazu Akiyama