presto-metrics 0.2.4 → 0.2.5

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
2
  SHA1:
3
- metadata.gz: b02aa8c4976319ac6544cfcb8cb730c96d2496b9
4
- data.tar.gz: 0ab5c108929498f20f99f3463ff06c3362347f44
3
+ metadata.gz: 722509363d3fe391b9f770f0bd13aa7757041027
4
+ data.tar.gz: e4602adb96b50132f4f8e1fe5464c62581725512
5
5
  SHA512:
6
- metadata.gz: b6735504b8cb65713f67d734a3a98cc678604de6425e1c6e8c3e83ef9d03af1a1d7849f79ad072cf57279281bda153d94735d21af3859ac56f904b7e254e5d9e
7
- data.tar.gz: 2afbfe616a871e56de3371587007093de0357b16278e378752e5e292b48add5b9b7f83ac0bed349372c8e37b8b55ce488d57d9db5e12ae7a6e7d89102276e4e8
6
+ metadata.gz: 979d26fafc45da47723169b3fde5b7d528dca1234da34a942020da2d7060177335027e1347fa23c462d8a4edd3b13ac7821459c1df5ab04d924f3ff7173587f3
7
+ data.tar.gz: 5cc4ce3746db1c0db23e5291742c0768de6be93bbb80471b1e17cda778a7bb7c21793f73b8d7eecbe24b27fa6a24fe4cdfcf54f38ff6c0d9927e8123af26233d
@@ -2,6 +2,7 @@ require "presto/metrics/version"
2
2
  require 'httparty'
3
3
  require 'json'
4
4
  require 'set'
5
+ require 'time'
5
6
 
6
7
  module Presto
7
8
  module Metrics
@@ -43,6 +44,7 @@ module Presto
43
44
  h['total_drivers'] = qi['totalDrivers'] || 0
44
45
  h['elapsed_time'] = qi['elapsedTime'] || "0.0m"
45
46
  h['create_time'] = qi['createTime']
47
+ h['running_time'] = qi['endTime'] || Time.now.utc.iso8601(3)
46
48
  if(h['state'] == "FAILED")
47
49
  h['errorCode'] = find(h['query_id'])['errorCode'] || {}
48
50
  end
@@ -1,5 +1,5 @@
1
1
  module Presto
2
2
  module Metrics
3
- VERSION = "0.2.4"
3
+ VERSION = "0.2.5"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: presto-metrics
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.4
4
+ version: 0.2.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Taro L. Saito