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 +4 -4
- data/lib/presto/metrics.rb +1 -0
- data/lib/presto/metrics/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b02aa8c4976319ac6544cfcb8cb730c96d2496b9
|
4
|
+
data.tar.gz: 0ab5c108929498f20f99f3463ff06c3362347f44
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b6735504b8cb65713f67d734a3a98cc678604de6425e1c6e8c3e83ef9d03af1a1d7849f79ad072cf57279281bda153d94735d21af3859ac56f904b7e254e5d9e
|
7
|
+
data.tar.gz: 2afbfe616a871e56de3371587007093de0357b16278e378752e5e292b48add5b9b7f83ac0bed349372c8e37b8b55ce488d57d9db5e12ae7a6e7d89102276e4e8
|
data/lib/presto/metrics.rb
CHANGED
@@ -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
|