presto-metrics 0.2.3 → 0.2.4

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: 6c35326d86dc97d75582854dca898b4705c7ce4d
4
- data.tar.gz: 8af459261e3979d8527ce36aa85ec89350e0fc60
3
+ metadata.gz: b02aa8c4976319ac6544cfcb8cb730c96d2496b9
4
+ data.tar.gz: 0ab5c108929498f20f99f3463ff06c3362347f44
5
5
  SHA512:
6
- metadata.gz: 0722b9ad7961e95e3782df06bc9a6a7e6dc7bcc869845a194fb3afbf7b76a4b1f825c16366b28202219adab174e716b003999418cd754707b05e71c5b5d7d738
7
- data.tar.gz: 61b7bc511c7d6b981c0a56202f42d2f913204de8e7c464df95545a9420fbd165b7b29d879ed049e38d584b715ccbd099954123933e148e4a5fd98c3a34cd6d16
6
+ metadata.gz: b6735504b8cb65713f67d734a3a98cc678604de6425e1c6e8c3e83ef9d03af1a1d7849f79ad072cf57279281bda153d94735d21af3859ac56f904b7e254e5d9e
7
+ data.tar.gz: 2afbfe616a871e56de3371587007093de0357b16278e378752e5e292b48add5b9b7f83ac0bed349372c8e37b8b55ce488d57d9db5e12ae7a6e7d89102276e4e8
@@ -36,6 +36,7 @@ module Presto
36
36
  h['state'] = qi['state'] || ""
37
37
  session = qi['session'] || {}
38
38
  h['source'] = session['source'] || ""
39
+ h['user'] = session['user'] || h['source'].gsub(/[^a-zA-Z0-9]/,'')
39
40
  h['running_drivers'] = qi['runningDrivers'] || 0
40
41
  h['queued_drivers'] = qi['queuedDrivers'] || 0
41
42
  h['completed_drivers'] = qi['completedDrivers'] || 0
@@ -1,5 +1,5 @@
1
1
  module Presto
2
2
  module Metrics
3
- VERSION = "0.2.3"
3
+ VERSION = "0.2.4"
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.3
4
+ version: 0.2.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Taro L. Saito