fluent-plugin-xml-parser 0.0.5 → 0.0.6

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: f0a48362b3ec5bda67530a485381c220b65eec7e
4
- data.tar.gz: 8cc9b53c652ace303ae3fc8556d5de9103256ec1
3
+ metadata.gz: a4f248cb61bf8b0131d914d73bc37f5009bb85ac
4
+ data.tar.gz: 235655751e1c197aab74b4d361a4e4046d813f65
5
5
  SHA512:
6
- metadata.gz: acc2cdc20253747a2e2ded6ae38f041ed2564d1ce7d81f3e34ff1f4da957fcf32d2af050d05a32cc70e00c4e97967d9c681cbd2dfffa8b828ff68c8c83b70148
7
- data.tar.gz: 7e87df627cab43517283235798bb7eab1e725490132be94b906df260ea70398d5680eac0ad436e160d8c154ffb8ef962c8969a4648d8c24c7f5b61a7c4133975
6
+ metadata.gz: 2937fe5e962ebc995b569d1fe871460e0ba1363ed1b2b73ea7bf0a34ecb0b26060615d839ee905ad6e21d9141dbecd737c2e272ef516981135d9b9609753e2be
7
+ data.tar.gz: addc3ade7a4d6795fc8451163ccd1c3f208db312d45f6644d1c2fc511ada06174c760f4c38e222ed196b694bff0eaa579c3e659ac5f5b3b2662fbf0c2fee83e0
data/README.md CHANGED
@@ -42,6 +42,36 @@ The followings are an example configuration for reformatting Libelium SmartCity
42
42
 
43
43
  ```
44
44
 
45
+ The target XML file of this example is as follows (an old style of Libelium sensor data):
46
+
47
+ ```
48
+ <?xml version="1.0" encoding="UTF-8"?>
49
+ <cap:alert xmlns:cap="urn:oasis:names:tc:emergency:cap:1.2" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="urn:oasis:names:tc:emergency:cap:1.2 CAP-v1.2-os.xsd">
50
+ <cap:identifier>Libelium_2015-09-21T18:54:24+:00:00495</cap:identifier>
51
+ <cap:sender>Libelium_SmartCity_387243170</cap:sender>
52
+ <cap:sent>2015-09-21T18:54:24+:00:00</cap:sent>
53
+ <cap:status>Actual</cap:status>
54
+ <cap:msgType>Alert</cap:msgType>
55
+ <cap:scope>Public</cap:scope>
56
+ <cap:code>KPI</cap:code>
57
+ <cap:info>
58
+ <cap:category>Other</cap:category>
59
+ <cap:event>Libelium</cap:event>
60
+ <cap:urgency>Inmediate</cap:urgency>
61
+ <cap:severity>Unknown</cap:severity>
62
+ <cap:certainty>Observed</cap:certainty>
63
+ <cap:onset>2015-09-21T18:54:24+:00:00</cap:onset>
64
+ <cap:senderName>Libelium</cap:senderName>
65
+ <cap:headline>Waspmote sensors</cap:headline>
66
+ <cap:description>Sensor data from Waspmote devices: MCP</cap:description>
67
+ <cap:parameter>
68
+ <cap:valueName>MCP</cap:valueName>
69
+ <cap:value>50</cap:value>
70
+ </cap:parameter>
71
+ </cap:info>
72
+ </cap:alert>
73
+ ```
74
+
45
75
  Configurable options are the following:
46
76
 
47
77
  - **time_xpath**: A value for fluentd time field. An array with two strings means xpath of
@@ -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-xml-parser"
7
- spec.version = "0.0.5"
7
+ spec.version = "0.0.6"
8
8
  spec.authors = ["Toyokazu Akiyama"]
9
9
  spec.email = ["toyokazu@gmail.com"]
10
10
  spec.summary = %q{fluentd xml parser plugin}
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fluent-plugin-xml-parser
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.5
4
+ version: 0.0.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Toyokazu Akiyama
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-11-06 00:00:00.000000000 Z
11
+ date: 2017-02-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -88,7 +88,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
88
88
  version: '0'
89
89
  requirements: []
90
90
  rubyforge_project:
91
- rubygems_version: 2.4.5
91
+ rubygems_version: 2.4.5.1
92
92
  signing_key:
93
93
  specification_version: 4
94
94
  summary: fluentd xml parser plugin