fluent-plugin-notifier 0.2.2 → 0.2.3

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: 573ec621ba8c492afd1c95961123fea54e12554a
4
- data.tar.gz: aca45dd2287392d7299b2d7022cb0742de9a5708
3
+ metadata.gz: 819e0e5c533b1b364de48803a65dd2b576cb754f
4
+ data.tar.gz: fd4e2261616683930ba6d90b7261bbc502ff85ae
5
5
  SHA512:
6
- metadata.gz: 1ba1f5f6093db46923ddd7be47e8f59dd1e4a8ee73f0e770d0d5c29cc0b86136ccc8e3ae7907cf91f939e9842fbc187da257e9ada284bed20c9caf04f561e4e0
7
- data.tar.gz: 9ed52c03e0836f346f76625c1c4fbc3724e0eafcd96f339019f66ca85327b7b024dfd99d901b56b7488a3c6c962d3f52e14719945b2c4b06da0bb06014dd6e63
6
+ metadata.gz: 4c4a68ea9a7028d285eea418503759b47dacc959ef3f96187ec60eb586817d51de0e4446766d48c2edfeb5f41cea6576c41ac4c3951d0add4efde509a9230304
7
+ data.tar.gz: 37e8b7d8d0cd28de54c6d0b66bf67ad0c73e049e6705490953146fc77f89aecc2fb3cf4f0c1277e41400edba489edd7b1b4e9ed00e6cbd4cab5054531d84dec7
@@ -1,7 +1,7 @@
1
1
  # -*- encoding: utf-8 -*-
2
2
  Gem::Specification.new do |gem|
3
3
  gem.name = "fluent-plugin-notifier"
4
- gem.version = "0.2.2"
4
+ gem.version = "0.2.3"
5
5
  gem.authors = ["TAGOMORI Satoshi"]
6
6
  gem.email = ["tagomoris@gmail.com"]
7
7
  gem.summary = %q{check matched messages and emit alert message}
@@ -327,13 +327,13 @@ class Fluent::NotifierOutput < Fluent::Output
327
327
  @tag_warn = element['tag_warn'] || defaults[:tag_warn]
328
328
  @tag_crit = element['tag_crit'] || defaults[:tag_crit]
329
329
  @intervals = [
330
- (element['interval_1st'] || defaults[:interval_1st]),
331
- (element['interval_2nd'] || defaults[:interval_2nd]),
332
- (element['interval_3rd'] || defaults[:interval_3rd])
330
+ (element['interval_1st'] || defaults[:interval_1st]).to_f,
331
+ (element['interval_2nd'] || defaults[:interval_2nd]).to_f,
332
+ (element['interval_3rd'] || defaults[:interval_3rd]).to_f
333
333
  ]
334
334
  @repetitions = [
335
- (element['repetitions_1st'] || defaults[:repetitions_1st]),
336
- (element['repetitions_2nd'] || defaults[:repetitions_2nd])
335
+ (element['repetitions_1st'] || defaults[:repetitions_1st]).to_f,
336
+ (element['repetitions_2nd'] || defaults[:repetitions_2nd]).to_f
337
337
  ]
338
338
  end
339
339
 
@@ -18,9 +18,9 @@ class NotifierOutputDefinitionTest < Test::Unit::TestCase
18
18
  'tag_warn' => 'warn', 'tag_crit' => 'crit',
19
19
  'pattern' => 'name2', 'target_key_pattern' => '^field\d$',
20
20
  'check' => 'string_find', 'warn_regexp' => 'WARN', 'crit_regexp' => 'CRIT',
21
- 'interval_1st' => 5, 'repetitions_1st' => 1,
22
- 'interval_2nd' => 6, 'repetitions_2nd' => 2,
23
- 'interval_3rd' => 7
21
+ 'interval_1st' => '5', 'repetitions_1st' => '1',
22
+ 'interval_2nd' => '6', 'repetitions_2nd' => '2',
23
+ 'interval_3rd' => '7'
24
24
  }
25
25
 
26
26
  def test_init
@@ -16,9 +16,9 @@ class NotifierOutputStateTest < Test::Unit::TestCase
16
16
  'tag_warn' => 'warn', 'tag_crit' => 'crit',
17
17
  'pattern' => 'name2', 'target_key_pattern' => '^field\d$',
18
18
  'check' => 'string_find', 'warn_regexp' => 'WARN', 'crit_regexp' => 'CRIT',
19
- 'interval_1st' => 5, 'repetitions_1st' => 1,
20
- 'interval_2nd' => 6, 'repetitions_2nd' => 2,
21
- 'interval_3rd' => 7
19
+ 'interval_1st' => '5', 'repetitions_1st' => '1',
20
+ 'interval_2nd' => '6', 'repetitions_2nd' => '2',
21
+ 'interval_3rd' => '7'
22
22
  }
23
23
 
24
24
  def test_init
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fluent-plugin-notifier
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.2
4
+ version: 0.2.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - TAGOMORI Satoshi
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-03-07 00:00:00.000000000 Z
11
+ date: 2014-06-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake