presto-metrics 0.4.1 → 0.4.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/lib/presto/metrics/client.rb +2 -1
- data/lib/presto/metrics/version.rb +1 -1
- metadata +3 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: '09f100f447203d34c25804b21b62ee7b2a57e3c0b53060be86ddce4518d2ea8a'
|
4
|
+
data.tar.gz: 63d2fb97c402172228943758a7ec95eb0efb86fd9b3014625570afb744dc4edc
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0beaa114d8a79d0f44539d5e2ceb8135056bcb74cd16ec4ba119e01f76f5563ad126c22d468aaf3308c064eedc9086db7024eb8cad7e116e7e942127e99a3aa3
|
7
|
+
data.tar.gz: a2eb30bf49793be327e984b205daf28d92b001157b2cc0a6071795eb3dc9ad517d7eeb894226de3ad8435867f121f15decdd1922f2cd07387e31b6f4e19a2773
|
@@ -16,6 +16,7 @@ module Presto
|
|
16
16
|
@query_path = opts[:query_path] || '/v1/query'
|
17
17
|
@node_path = opts[:node_path] || '/v1/node'
|
18
18
|
@caml_case = opts[:caml_case] || false
|
19
|
+
@headers = opts[:headers] || {}
|
19
20
|
end
|
20
21
|
|
21
22
|
@@MBEAN_ALIAS = {
|
@@ -79,7 +80,7 @@ module Presto
|
|
79
80
|
end
|
80
81
|
|
81
82
|
def get(path, default='{}')
|
82
|
-
resp = HTTParty.get(URI.encode("#{@endpoint}#{path}"))
|
83
|
+
resp = HTTParty.get(URI.encode("#{@endpoint}#{path}"), headers: @headers)
|
83
84
|
if resp.code == 200
|
84
85
|
resp.body
|
85
86
|
else
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: presto-metrics
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.4.
|
4
|
+
version: 0.4.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Taro L. Saito
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2021-08-02 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -135,8 +135,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
135
135
|
- !ruby/object:Gem::Version
|
136
136
|
version: '0'
|
137
137
|
requirements: []
|
138
|
-
|
139
|
-
rubygems_version: 2.6.11
|
138
|
+
rubygems_version: 3.2.25
|
140
139
|
signing_key:
|
141
140
|
specification_version: 4
|
142
141
|
summary: A library for collecting metrics of Presto, a distributed SQL engine
|