logstash-output-datadog 3.0.4 → 3.0.5

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
  SHA256:
3
- metadata.gz: 848b5162b4e7e17348338813b93c44316431805c87a9fb3f57476845509a9d48
4
- data.tar.gz: de0164b2daa9545d7abe2f33281e2e6d5e39dc9732142702bb923585580ca65c
3
+ metadata.gz: 187e26eef527783df38744936d7b400a7586cc20d004b1d0022aab7618238c3a
4
+ data.tar.gz: 13c69c09cb1d27d1c24154b234939e3b9eecf11272d8c68ff4343b64c0397c2c
5
5
  SHA512:
6
- metadata.gz: 9f5b52dceab7924dd0131b10fb88d0748bcea6f841805c5a117a87fd40414ebbd0bda7fb3abacc43a785a62b5b0082f3de7ea1dc5b190e64922f978a3a136fee
7
- data.tar.gz: 1dd98094e57fb15de25d39eb2d81170368f3d0206a47928d208524f6cb3cdb4faea5666fee9dbf82fca0333c1f454b640cfef962b84fe723f3b3078bbd92b701
6
+ metadata.gz: 31f7cfacbf10b8df87e011c5f739dfd4af69ad6a2325991b934b9a8be00b8efc7830742460a579eeca771a17da991366570bf7ee85ff9b4c17f706abb14c4a6e
7
+ data.tar.gz: 2110903def8865cc8accbcdba9b850bc3f0a49eab887046efa07de86a873d7cc463297add6ccb791474196f3a96bd582e82f82cc59211d8538daf989b12544a9
@@ -1,3 +1,6 @@
1
+ ## 3.0.5
2
+ - Docs: Set the default_codec doc attribute.
3
+
1
4
  ## 3.0.4
2
5
  - Update gemspec summary
3
6
 
data/LICENSE CHANGED
@@ -1,4 +1,4 @@
1
- Copyright (c) 2012–2016 Elasticsearch <http://www.elastic.co>
1
+ Copyright (c) 2012-2018 Elasticsearch <http://www.elastic.co>
2
2
 
3
3
  Licensed under the Apache License, Version 2.0 (the "License");
4
4
  you may not use this file except in compliance with the License.
@@ -1,5 +1,6 @@
1
1
  :plugin: datadog
2
2
  :type: output
3
+ :default_codec: plain
3
4
 
4
5
  ///////////////////////////////////////////
5
6
  START - GENERATED VARIABLES, DO NOT EDIT!
@@ -119,4 +120,6 @@ Title
119
120
 
120
121
 
121
122
  [id="plugins-{type}s-{plugin}-common-options"]
122
- include::{include_path}/{type}.asciidoc[]
123
+ include::{include_path}/{type}.asciidoc[]
124
+
125
+ :default_codec!:
@@ -82,7 +82,7 @@ class LogStash::Outputs::Datadog < LogStash::Outputs::Base
82
82
  request.add_field("Content-Type", 'application/json')
83
83
  response = @client.request(request)
84
84
  @logger.info("DD convo", :request => request.inspect, :response => response.inspect)
85
- raise unless response.code == '200'
85
+ raise unless response.code =~ /^2\d\d$/
86
86
  rescue Exception => e
87
87
  @logger.warn("Unhandled exception", :request => request.inspect, :response => response.inspect, :exception => e.inspect)
88
88
  end
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = 'logstash-output-datadog'
3
- s.version = '3.0.4'
3
+ s.version = '3.0.5'
4
4
  s.licenses = ['Apache License (2.0)']
5
5
  s.summary = "Sends events to DataDogHQ based on Logstash events"
6
6
  s.description = "This gem is a Logstash plugin required to be installed on top of the Logstash core pipeline using $LS_HOME/bin/logstash-plugin install gemname. This gem is not a stand-alone program"
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: logstash-output-datadog
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.0.4
4
+ version: 3.0.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Elastic
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-11-07 00:00:00.000000000 Z
11
+ date: 2018-04-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  requirement: !ruby/object:Gem::Requirement