fluent-plugin-datadog_event 0.1.1 → 0.1.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/fluent/plugin/datadog_event/version.rb +1 -1
- data/lib/fluent/plugin/out_datadog_event.rb +6 -9
- metadata +15 -16
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 662fbe7825c0e3c551ee2660c6221381d079f6ab
|
4
|
+
data.tar.gz: 73df5525c7a797ce586473593f46be7a844f2fbf
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6f1c1668c5160ccc63519e6d19d119b4ad7cdbace1b96b89deeef2b1f7cf757102cdba33bf5ff29196eb6bc74aee337d7123791a7df8405e96834fd08b1ade4c
|
7
|
+
data.tar.gz: 4ffcb2a2ca97cb17b31d8a3867ae05c87732b3b6a30836864e9cb02db1c0b00aad568df4d3c47f08eaf00aeed965576bada6bfca8aa999813011a3d2cafe051c
|
@@ -8,9 +8,8 @@ module Fluent
|
|
8
8
|
|
9
9
|
config_param :api_key, :string
|
10
10
|
config_param :app_key, :string, :default => nil
|
11
|
-
config_param :
|
11
|
+
config_param :msg_title, :string, :default => 'fluentd Datadog Event'
|
12
12
|
config_param :priority, :string, :default => nil
|
13
|
-
# config_param :host, :string, :default => nil
|
14
13
|
config_param :tags, :string, :default => nil
|
15
14
|
config_param :alert_type, :string, :default => nil
|
16
15
|
config_param :aggregation_key, :string, :default => nil
|
@@ -20,6 +19,7 @@ module Fluent
|
|
20
19
|
super
|
21
20
|
#
|
22
21
|
require "dogapi"
|
22
|
+
require "date"
|
23
23
|
end
|
24
24
|
|
25
25
|
def start
|
@@ -35,18 +35,15 @@ module Fluent
|
|
35
35
|
def emit(tag, es, chain)
|
36
36
|
chain.next
|
37
37
|
es.each do |time,record|
|
38
|
-
record
|
39
|
-
event_msg = record[k]
|
40
|
-
post_event(k, event_msg)
|
41
|
-
end
|
38
|
+
post_event(time, "record", record)
|
42
39
|
end
|
43
40
|
end
|
44
41
|
|
45
|
-
def post_event(event_key, event_msg)
|
42
|
+
def post_event(time, event_key, event_msg)
|
46
43
|
res = @dog.emit_event(Dogapi::Event.new(
|
47
44
|
"#{event_msg}",
|
48
|
-
:msg_title =>
|
49
|
-
:date_happend =>
|
45
|
+
:msg_title => @msg_title,
|
46
|
+
:date_happend => time,
|
50
47
|
:priority => @priority,
|
51
48
|
# :host => @host,
|
52
49
|
:tags => @tags,
|
metadata
CHANGED
@@ -1,69 +1,69 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: fluent-plugin-datadog_event
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Yohei Kawahara(inokappa)
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-
|
11
|
+
date: 2015-11-19 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
|
-
- - ~>
|
17
|
+
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
19
|
version: '1.9'
|
20
20
|
type: :development
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
|
-
- - ~>
|
24
|
+
- - "~>"
|
25
25
|
- !ruby/object:Gem::Version
|
26
26
|
version: '1.9'
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: rake
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
|
-
- - ~>
|
31
|
+
- - "~>"
|
32
32
|
- !ruby/object:Gem::Version
|
33
33
|
version: '10.0'
|
34
34
|
type: :development
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
|
-
- - ~>
|
38
|
+
- - "~>"
|
39
39
|
- !ruby/object:Gem::Version
|
40
40
|
version: '10.0'
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: dogapi
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
44
44
|
requirements:
|
45
|
-
- -
|
45
|
+
- - ">="
|
46
46
|
- !ruby/object:Gem::Version
|
47
47
|
version: '0'
|
48
48
|
type: :development
|
49
49
|
prerelease: false
|
50
50
|
version_requirements: !ruby/object:Gem::Requirement
|
51
51
|
requirements:
|
52
|
-
- -
|
52
|
+
- - ">="
|
53
53
|
- !ruby/object:Gem::Version
|
54
54
|
version: '0'
|
55
55
|
- !ruby/object:Gem::Dependency
|
56
56
|
name: fluentd
|
57
57
|
requirement: !ruby/object:Gem::Requirement
|
58
58
|
requirements:
|
59
|
-
- -
|
59
|
+
- - ">="
|
60
60
|
- !ruby/object:Gem::Version
|
61
61
|
version: '0'
|
62
62
|
type: :runtime
|
63
63
|
prerelease: false
|
64
64
|
version_requirements: !ruby/object:Gem::Requirement
|
65
65
|
requirements:
|
66
|
-
- -
|
66
|
+
- - ">="
|
67
67
|
- !ruby/object:Gem::Version
|
68
68
|
version: '0'
|
69
69
|
description: fluentd plugin for datadog event
|
@@ -73,8 +73,8 @@ executables: []
|
|
73
73
|
extensions: []
|
74
74
|
extra_rdoc_files: []
|
75
75
|
files:
|
76
|
-
- .gitignore
|
77
|
-
- .travis.yml
|
76
|
+
- ".gitignore"
|
77
|
+
- ".travis.yml"
|
78
78
|
- Gemfile
|
79
79
|
- README.md
|
80
80
|
- Rakefile
|
@@ -91,19 +91,18 @@ require_paths:
|
|
91
91
|
- lib
|
92
92
|
required_ruby_version: !ruby/object:Gem::Requirement
|
93
93
|
requirements:
|
94
|
-
- -
|
94
|
+
- - ">="
|
95
95
|
- !ruby/object:Gem::Version
|
96
96
|
version: '0'
|
97
97
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
98
98
|
requirements:
|
99
|
-
- -
|
99
|
+
- - ">="
|
100
100
|
- !ruby/object:Gem::Version
|
101
101
|
version: '0'
|
102
102
|
requirements: []
|
103
103
|
rubyforge_project:
|
104
|
-
rubygems_version: 2.
|
104
|
+
rubygems_version: 2.4.5.1
|
105
105
|
signing_key:
|
106
106
|
specification_version: 4
|
107
107
|
summary: fluentd plugin for datadog event
|
108
108
|
test_files: []
|
109
|
-
has_rdoc:
|