ruby_script_exporter 0.0.4 → 0.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: 91137cebd5e7ca4dcfeabeeb3994e7d4564baa586d3764106b1cb651c17e7cca
4
- data.tar.gz: 3c8283bd2612f3386c1532dcf9bfefb95d6a54a6cab144eb78466743197b3aa1
3
+ metadata.gz: dc0de29de8e266cf923693ad6a865004fad5a94d2f30b75f278f37dd89a1f9b1
4
+ data.tar.gz: bab456920ef24f0ee1fb5930d6931e5bfcb24064eb5d65b7bc9c70311c662421
5
5
  SHA512:
6
- metadata.gz: cc734f579a2707398aa24faecac8bde966820ce4ece8072984c256095d5e8ed7ce375e7e162f65882667098f566a12f62c5002f865cbfdca1fbaa2408f00fcb3
7
- data.tar.gz: 20781aa8bf90e705e6c6a96f625033a0b5cc7415afdb72fd766bb9e75a2805863c858e1291b9aeabbbf76a5ba6d5d20e31e51a590589dcf5aa3229733bd2938c
6
+ metadata.gz: 50aea75e2319e956dda4841a62053e03e2f0f3a55f469a01de97367bf9d19ec69b046d7c133b9cdde1f52d8246d9593f94f20f041206ac795ba905a9c0aa8b77
7
+ data.tar.gz: 8a764ccf0e7a79037479114aca78d219e72fff534784f1ec0455678e48396252e8fedb12eaef06e823d697dbca62c7aca4af1873c00c6f41f19f975ab55c41ca
data/CHANGELOG.md CHANGED
@@ -1,3 +1,7 @@
1
+ ## 0.0.5
2
+
3
+ * Fix HTTP Types
4
+
1
5
  ## 0.0.4
2
6
 
3
7
  * Add HTTP observer
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- ruby_script_exporter (0.0.4)
4
+ ruby_script_exporter (0.0.5)
5
5
  http (~> 5.2.0)
6
6
  rackup (~> 2.1.0)
7
7
  sinatra (~> 4.0.0)
@@ -3,8 +3,8 @@ require 'http'
3
3
  module RubyScriptExporter
4
4
  module Observers
5
5
  module Http
6
- Type.register_type(:http_status, :gauge, "HTTP response status: 0:good, 1:refused, 2:timeout, 3:name_not_resolved, 4:connection_failed, 5:certificate_error, 6:response_code_invalid, 7:response_body_invalid")
7
- Type.register_type(:http_response_time, :gauge, "HTTP response time")
6
+ Type.register_type(:http_status, :gauge, "HTTP response status: 0:good, 1:refused, 2:timeout, 3:name_not_resolved, 4:connection_failed, 5:certificate_error, 6:response_code_invalid, 7:response_body_invalid", global: true)
7
+ Type.register_type(:http_response_time, :gauge, "HTTP response time", global: true)
8
8
 
9
9
  def observe_http(url, method: :get, expected_response_code: 200, expected_body: nil, timeout: 0.9)
10
10
  start_time = Process.clock_gettime(Process::CLOCK_MONOTONIC)
@@ -1,3 +1,3 @@
1
1
  module RubyScriptExporter
2
- VERSION = "0.0.4"
2
+ VERSION = "0.0.5"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ruby_script_exporter
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.4
4
+ version: 0.0.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Martin Schaflitzl