sensu-plugins-http 3.0.0 → 3.0.1
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 +4 -4
- data/CHANGELOG.md +5 -2
- data/bin/metrics-http-json-deep.rb +2 -2
- data/lib/sensu-plugins-http/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c17907f231ced5e58116bfad183b917a889216b1b4c3f5e2445a355d28ad7bb6
|
4
|
+
data.tar.gz: 3a381a6476af14205b0305adefb9ea322be67cc002fc319ea4f6f19c35c677ab
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 76609341403e80c116585b6ceab354118ec107656949ec1386ae04356ee4f54cfb8077076d3ea6b32fd36696af902cff477d2cbc3213e0f1f0bab97c47bc64c9
|
7
|
+
data.tar.gz: 526923d335d291b02edd38124a49ddf51603fa8ce37341cb6d86f4318d1cfdb0778369520363d89e69130370f42ad35ac091ebc3d1a827fa787205e509967716
|
data/CHANGELOG.md
CHANGED
@@ -5,7 +5,9 @@ This CHANGELOG follows the format listed [here](https://github.com/sensu-plugins
|
|
5
5
|
|
6
6
|
## [Unreleased]
|
7
7
|
|
8
|
-
|
8
|
+
## [3.0.1] - 2018-09-04
|
9
|
+
### Fixed
|
10
|
+
- `metrics-http-json-deep.rb`: properly filter out non numeric values (@CosmoPennypacker)
|
9
11
|
|
10
12
|
## [3.0.0] - 2018-08-19
|
11
13
|
### Breaking Changes
|
@@ -208,7 +210,8 @@ This CHANGELOG follows the format listed [here](https://github.com/sensu-plugins
|
|
208
210
|
### Added
|
209
211
|
- Initial release
|
210
212
|
|
211
|
-
[Unreleased]: https://github.com/sensu-plugins/sensu-plugins-http/compare/3.0.
|
213
|
+
[Unreleased]: https://github.com/sensu-plugins/sensu-plugins-http/compare/3.0.1...HEAD
|
214
|
+
[3.0.1]: https://github.com/sensu-plugins/sensu-plugins-http/compare/3.0.0...3.0.1
|
212
215
|
[3.0.0]: https://github.com/sensu-plugins/sensu-plugins-http/compare/2.11.0...3.0.0
|
213
216
|
[2.11.0]: https://github.com/sensu-plugins/sensu-plugins-http/compare/2.10.0...2.11.0
|
214
217
|
[2.10.0]: https://github.com/sensu-plugins/sensu-plugins-http/compare/2.9.0...2.10.0
|
@@ -91,8 +91,8 @@ class JsonDeepMetrics < Sensu::Plugin::Metric::CLI::Graphite
|
|
91
91
|
ekey = key.gsub(/\s/, '_')
|
92
92
|
if value.is_a?(Hash)
|
93
93
|
deep_value(value, "#{scheme}.#{ekey}")
|
94
|
-
elsif config[:numonly]
|
95
|
-
output "#{scheme}.#{ekey}", value.round(config[:decimal_places])
|
94
|
+
elsif config[:numonly]
|
95
|
+
output "#{scheme}.#{ekey}", value.round(config[:decimal_places]) if value.is_a?(Numeric)
|
96
96
|
else
|
97
97
|
output "#{scheme}.#{ekey}", value
|
98
98
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: sensu-plugins-http
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.0.
|
4
|
+
version: 3.0.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Sensu-Plugins and contributors
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-
|
11
|
+
date: 2018-09-03 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: sensu-plugin
|