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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: fd1af621c09140c1b0941313bf02ef3efb31ac72
4
- data.tar.gz: d545cfb1f998f061fa309e90e7f96e7adf687a56
2
+ SHA256:
3
+ metadata.gz: '09f100f447203d34c25804b21b62ee7b2a57e3c0b53060be86ddce4518d2ea8a'
4
+ data.tar.gz: 63d2fb97c402172228943758a7ec95eb0efb86fd9b3014625570afb744dc4edc
5
5
  SHA512:
6
- metadata.gz: 629431958ae6743bdb9c59420b802611a4cf2f02c1aeca2b85604fc748d864ad4ad9efaaeb82e7746bc843b1937b4d82b44e837b17e1bc705fed7075612bea36
7
- data.tar.gz: ec1c7fc60d3655aa9a0976cc16558090900cd98841441592952dd01c3a46f1585066a55e57914e851d13059f2b3dc80c17e064c654d043eb6e19f035827b95e9
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
@@ -1,5 +1,5 @@
1
1
  module Presto
2
2
  module Metrics
3
- VERSION = '0.4.1'
3
+ VERSION = '0.4.2'
4
4
  end
5
5
  end
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.1
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: 2019-11-28 00:00:00.000000000 Z
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
- rubyforge_project:
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