fluent-plugin-cloudwatch-transform 0.0.2 → 0.0.3

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: 90e1f0b5e157a970e9083dceca362c9fa7ec15b8
4
- data.tar.gz: 3a404fc2307d83b9e4bbaf3a84f695225cceecf0
3
+ metadata.gz: 6f298c3db2f89a6b7b20e7e70586f5e8f1166169
4
+ data.tar.gz: 8b5cd1939471e4cc5ce5b0e74e89122df2c90d02
5
5
  SHA512:
6
- metadata.gz: f6c9a5a5ade65723fb7f3f705cb0c3ee771de69f940003941d815f160b2ba4547260cad6b680d556ce50e469324610944f9f58741682278e889629c7f6f0def3
7
- data.tar.gz: f05d5a02c3f9d059bba329adbabcc004b8f2dc80e0bb0fdfd78213e925c5afe2c17d9e79b46b78223a2dbc04527a3569cc29ea034aaa05fb41d9951ba482cc56
6
+ metadata.gz: fbb8c9b0100e1ac8408ce615f86f7c3a4144f56f68cb0273262a3bdd54089eb1ad5ec9a50d521eb80aade43f0a163aec641a65b030f10dca82bae2acc80b765e
7
+ data.tar.gz: e1eeab2ea5d3214565e39d5751fb198a8e1d6c2aaaf829f65e21df6be958c8cad66a4d967211dd1af22fe57f68abb8426e2237251cb108f228a78a7232d14cf4
data/.DS_Store CHANGED
Binary file
data/.gitignore CHANGED
@@ -1 +1,3 @@
1
1
  *.gem
2
+ ..DS_Store
3
+
data/README.md CHANGED
@@ -10,7 +10,6 @@ If you don't, please run through [quick start for fluentd] (https://github.com/f
10
10
  Now after you have fluentd installed you can follow either of the steps below:
11
11
 
12
12
 
13
- //not available yet:
14
13
 
15
14
  Add this line to your application's Gemfile:
16
15
 
@@ -19,8 +18,12 @@ Add this line to your application's Gemfile:
19
18
  Or install it yourself as:
20
19
 
21
20
  $ gem install fluent-plugin-cloudwatch-transform
21
+
22
+ or
23
+
24
+ $ fluent-gem install fluent-plugin-cloudwatch-transform
22
25
 
23
- //for current version:
26
+ //for build the gem locally:
24
27
 
25
28
  just download or clone this repository
26
29
 
@@ -28,7 +31,7 @@ Or install it yourself as:
28
31
 
29
32
  $ gem build fluent-plugin-cloudwatch-transform.gemspec
30
33
 
31
- $ sudo gem install ./fluent-plugin-cloudwatch-transform-0.0.1.gem
34
+ $ sudo gem install ./fluent-plugin-cloudwatch-transform-0.0.3.gem
32
35
 
33
36
 
34
37
  ## Usage
@@ -82,7 +85,6 @@ Add the following into your fluentd config.
82
85
  ## To DO
83
86
  need to write the test
84
87
 
85
- not push to fluent.org yet
86
88
 
87
89
 
88
90
 
@@ -3,7 +3,7 @@ $:.push File.expand_path("../lib", __FILE__)
3
3
 
4
4
  Gem::Specification.new do |gem|
5
5
  gem.name = "fluent-plugin-cloudwatch-transform"
6
- gem.version = "0.0.2"
6
+ gem.version = "0.0.3"
7
7
  gem.date = '2015-03-18'
8
8
  gem.authors = ["Ling Zhang"]
9
9
  gem.email = ["zhangling.ice@gmail.com"]
data/lib/.DS_Store ADDED
Binary file
Binary file
@@ -1,5 +1,5 @@
1
1
  module Fluent
2
- class NewrelicOutput < Output
2
+ class CloudWatchTransOutput < Output
3
3
  # First, register the plugin. NAME is the name of this plugin
4
4
  # and identifies the plugin in the configuration file.
5
5
  Fluent::Plugin.register_output('cloudwatch_transform', self)
@@ -44,9 +44,10 @@ module Fluent
44
44
  end
45
45
  # add more information for the cloudwatch alert
46
46
  timestamp = Engine.now # Should be receive_time_input
47
- newhash['receive_time_input']=timestamp.to_s
47
+ newhash["receive_time_input"]=timestamp.to_s
48
48
  newhash["application_name"] = last_tag
49
49
  newhash["intermediary_source"] = "cloudwatch"
50
+ newhash["event_type"] = "alert.cloudwatch"
50
51
 
51
52
  #log the transformed message and emit it
52
53
  $log.info "Tranformed message #{newhash}"
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fluent-plugin-cloudwatch-transform
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ling Zhang
@@ -97,6 +97,8 @@ files:
97
97
  - README.md
98
98
  - Rakefile
99
99
  - fluent-plugin-cloudwatch-transform.gemspec
100
+ - lib/.DS_Store
101
+ - lib/fluent/.DS_Store
100
102
  - lib/fluent/plugin/out_cloudwatch_transform.rb
101
103
  - sample/.DS_Store
102
104
  - sample/cloudwatch-transform.conf.sample