fluent-plugin-wodby 0.1.7 → 0.1.8

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
  SHA256:
3
- metadata.gz: 492f5e148c2250501ee81ee6f08bfa08c41f09a66929dacef07004bdf4b28acf
4
- data.tar.gz: ac9462d3082ec76baf70c0d37f638cd1239a412998b6b1d646fb3bbcb15fe59b
3
+ metadata.gz: 57ac4a430d1c7d6f5ff0be056648e3a1cf139a7964a2e2ef7bc86350412f9b19
4
+ data.tar.gz: 9adf5941a2fa080534b3f878e329cc5e81501c2025c180ef2cf3b511f34adf51
5
5
  SHA512:
6
- metadata.gz: d049cdb926cb164f9e22154ede1ede14984376e181064e1eece3d160ff4ce52753b1196f45865715514dd5a5af869461026ca644b81d791c67500cb36779e485
7
- data.tar.gz: 20015f81fe49ae01d9e48d5236486c8222114a8ec979c58f322e4bfe0c83a4e604f39804a39afcef254c80821ac44b1099fd75f8fcffa0957e69de12ecdb0701
6
+ metadata.gz: 7490189d97937b66a21d8f6d391547d6d2aca6f010ac3861cfd825666c5db819c257186792057f54f32f8a26cf3647da321d91dd0b35177d5484a98de5a6d94b
7
+ data.tar.gz: acea16faaf6d820cb71394f47e6abc8e39a43d015d2fbf011a4c56ff0b7919c5b622465b14b2795090e5b05b9811f3e0819de37c876f28ece2498d80e17d7dd0
@@ -3,7 +3,7 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
3
3
 
4
4
  Gem::Specification.new do |spec|
5
5
  spec.name = "fluent-plugin-wodby"
6
- spec.version = "0.1.7"
6
+ spec.version = "0.1.8"
7
7
  spec.authors = ["Robert Wunderer"]
8
8
  spec.email = ["robert@ramsalt.com"]
9
9
 
@@ -41,10 +41,14 @@ module Fluent
41
41
  instance = get_instance(namespace)
42
42
  app = get_app(instance['app_id'])
43
43
 
44
- @instance_map[namespace] = "#{app['title']}-#{instance['name']}"
44
+ @instance_map[namespace] = {
45
+ 'name' => "#{app['name']}.#{instance['name']}",
46
+ 'title' => "#{app['title']} - #{instance['title']}",
47
+ }
45
48
  end
46
49
 
47
- record['wodby.instance'] = @instance_map[namespace]
50
+ record['wodby.instance'] = @instance_map[namespace]['name']
51
+ record['wodby.instance_title'] = @instance_map[namespace]['title']
48
52
  else
49
53
  log.info "No namespace found"
50
54
  log.info record
@@ -22,9 +22,11 @@ class WodbyFilterTest < Test::Unit::TestCase
22
22
  end
23
23
 
24
24
  assert_equal(3, d.filtered_records.size)
25
- assert_equal('dfo.no-staging', d.filtered_records[0]['wodby.instance'])
26
- assert_equal('dfo.no-prod', d.filtered_records[1]['wodby.instance'])
27
- assert_equal('dfo.no-staging', d.filtered_records[2]['wodby.instance'])
25
+ assert_equal('dfono.staging', d.filtered_records[0]['wodby.instance'])
26
+ assert_equal('dfono.prod', d.filtered_records[1]['wodby.instance'])
27
+ assert_equal('dfono.staging', d.filtered_records[2]['wodby.instance'])
28
+ assert_equal('dfo.no - Staging', d.filtered_records[0]['wodby.instance_title'])
29
+ assert_equal('dfo.no - Prod', d.filtered_records[1]['wodby.instance_title'])
28
30
  assert_nil(d.filtered_records[2]['wodby.instance_query'])
29
31
  assert_true(d.filtered_records[0]['wodby.filter'])
30
32
  assert_true(d.filtered_records[1]['wodby.filter'])
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fluent-plugin-wodby
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.7
4
+ version: 0.1.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Robert Wunderer