logstash-output-datadog 0.1.4 → 0.1.5

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: 2bb3a8d4197daa687b13fcfb7237539a09b32b0d
4
- data.tar.gz: ab7af3017425d9a85bfda753e472526a6243e05a
3
+ metadata.gz: 5abe1f63366d746f5f6e6281ce2036f40eef27e9
4
+ data.tar.gz: dfb2117b2fd118e767e2af178f0d4317880b455b
5
5
  SHA512:
6
- metadata.gz: 5d81554289f1b5500d37d9f51b2b0cfa8aa505b39aefba48ee5e3aa76b8b031e041e0414d97cbe92a1d0899fe0851bbd731e37156ca48ac05a652b9b053cb40f
7
- data.tar.gz: a9b25eef43983470838d27517860ce309fdbe1589409de12153c8c3f864ba01298bf477fb5eb8bcc820fc38a3b5dcda5575b61ca6acf8e4785a670bf9cc983cc
6
+ metadata.gz: b82bc924e7cb65d801732bd91d8e46d33378ed317afacbbdc9de0aab7bd4f03b28d2ec7cff7a07855dad1e5c545a2242a2b720b285076606039334140db47afe
7
+ data.tar.gz: 48b373783d15e8801178f263b56c5a4015095a8444016d09c08062ca4f7c9f7667a10e36ee8f72a977518170347c48d0344e5f923c70affed6871560215a6bd2
data/CHANGELOG.md ADDED
File without changes
data/NOTICE.TXT ADDED
@@ -0,0 +1,5 @@
1
+ Elasticsearch
2
+ Copyright 2012-2015 Elasticsearch
3
+
4
+ This product includes software developed by The Apache Software
5
+ Foundation (http://www.apache.org/).
data/README.md CHANGED
@@ -13,7 +13,7 @@ Logstash provides infrastructure to automatically generate documentation for thi
13
13
 
14
14
  ## Need Help?
15
15
 
16
- Need help? Try #logstash on freenode IRC or the logstash-users@googlegroups.com mailing list.
16
+ Need help? Try #logstash on freenode IRC or the https://discuss.elastic.co/c/logstash discussion forum.
17
17
 
18
18
  ## Developing
19
19
 
@@ -1,7 +1,7 @@
1
1
  # encoding: utf-8
2
2
  require "logstash/outputs/base"
3
3
  require "logstash/namespace"
4
-
4
+ require "logstash/json"
5
5
 
6
6
  class LogStash::Outputs::Datadog < LogStash::Outputs::Base
7
7
  # This output lets you send events (for now. soon metrics) to
@@ -27,7 +27,7 @@ class LogStash::Outputs::Datadog < LogStash::Outputs::Base
27
27
 
28
28
  # Source type name
29
29
  config :source_type_name, :validate => ["nagios", "hudson", "jenkins", "user", "my apps", "feed", "chef", "puppet", "git", "bitbucket", "fabric", "capistrano"], :default => "my apps"
30
-
30
+
31
31
  # Alert type
32
32
  config :alert_type, :validate => ["info", "error", "warning", "success"]
33
33
 
@@ -66,7 +66,7 @@ class LogStash::Outputs::Datadog < LogStash::Outputs::Base
66
66
  if @date_happened
67
67
  dd_event['date_happened'] = event.sprintf(@date_happened)
68
68
  else
69
- dd_event['date_happened'] = event["@timestamp"].to_i
69
+ dd_event['date_happened'] = event.timestamp.to_i
70
70
  end
71
71
 
72
72
  if @dd_tags
@@ -79,9 +79,9 @@ class LogStash::Outputs::Datadog < LogStash::Outputs::Base
79
79
  @logger.debug("DataDog event", :dd_event => dd_event)
80
80
 
81
81
  request = Net::HTTP::Post.new("#{@uri.path}?api_key=#{@api_key}")
82
-
82
+
83
83
  begin
84
- request.body = dd_event.to_json
84
+ request.body = LogStash::Json.dump(dd_event)
85
85
  request.add_field("Content-Type", 'application/json')
86
86
  response = @client.request(request)
87
87
  @logger.info("DD convo", :request => request.inspect, :response => response.inspect)
@@ -1,7 +1,7 @@
1
1
  Gem::Specification.new do |s|
2
2
 
3
3
  s.name = 'logstash-output-datadog'
4
- s.version = '0.1.4'
4
+ s.version = '0.1.5'
5
5
  s.licenses = ['Apache License (2.0)']
6
6
  s.summary = "This output lets you send events (for now. soon metrics) to DataDogHQ based on Logstash events"
7
7
  s.description = "This gem is a logstash plugin required to be installed on top of the Logstash core pipeline using $LS_HOME/bin/plugin install gemname. This gem is not a stand-alone program"
metadata CHANGED
@@ -1,17 +1,18 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: logstash-output-datadog
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.4
4
+ version: 0.1.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Elastic
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-04-20 00:00:00.000000000 Z
11
+ date: 2015-07-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
- requirement: !ruby/object:Gem::Requirement
14
+ name: logstash-core
15
+ version_requirements: !ruby/object:Gem::Requirement
15
16
  requirements:
16
17
  - - '>='
17
18
  - !ruby/object:Gem::Version
@@ -19,10 +20,7 @@ dependencies:
19
20
  - - <
20
21
  - !ruby/object:Gem::Version
21
22
  version: 2.0.0
22
- name: logstash-core
23
- prerelease: false
24
- type: :runtime
25
- version_requirements: !ruby/object:Gem::Requirement
23
+ requirement: !ruby/object:Gem::Requirement
26
24
  requirements:
27
25
  - - '>='
28
26
  - !ruby/object:Gem::Version
@@ -30,20 +28,22 @@ dependencies:
30
28
  - - <
31
29
  - !ruby/object:Gem::Version
32
30
  version: 2.0.0
31
+ prerelease: false
32
+ type: :runtime
33
33
  - !ruby/object:Gem::Dependency
34
- requirement: !ruby/object:Gem::Requirement
34
+ name: logstash-devutils
35
+ version_requirements: !ruby/object:Gem::Requirement
35
36
  requirements:
36
37
  - - '>='
37
38
  - !ruby/object:Gem::Version
38
39
  version: '0'
39
- name: logstash-devutils
40
- prerelease: false
41
- type: :development
42
- version_requirements: !ruby/object:Gem::Requirement
40
+ requirement: !ruby/object:Gem::Requirement
43
41
  requirements:
44
42
  - - '>='
45
43
  - !ruby/object:Gem::Version
46
44
  version: '0'
45
+ prerelease: false
46
+ type: :development
47
47
  description: This gem is a logstash plugin required to be installed on top of the Logstash core pipeline using $LS_HOME/bin/plugin install gemname. This gem is not a stand-alone program
48
48
  email: info@elastic.co
49
49
  executables: []
@@ -51,9 +51,11 @@ extensions: []
51
51
  extra_rdoc_files: []
52
52
  files:
53
53
  - .gitignore
54
+ - CHANGELOG.md
54
55
  - CONTRIBUTORS
55
56
  - Gemfile
56
57
  - LICENSE
58
+ - NOTICE.TXT
57
59
  - README.md
58
60
  - Rakefile
59
61
  - lib/logstash/outputs/datadog.rb