stackdriver 0.1.1 → 0.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- checksums.yaml.gz.asc +8 -9
- data.tar.gz.asc +8 -9
- data/lib/stackdriver.rb +4 -4
- metadata +3 -3
- metadata.gz.asc +8 -9
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 45cccb2aaa57cee3afdbed410e598586906b0301
|
4
|
+
data.tar.gz: 8476945867c544898327da3b42b6afcae4d39b90
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9bb5743ab4d515f2bd4d7ae8539bb9fffff3a091258a49a5614dafeb396b66095885bfbfab4065675a78785238e7ea82f95448f6910624803d6fe14ead6ecf78
|
7
|
+
data.tar.gz: 5007e74fbc395038bb504e83350a1b452ce2d2abc446cec62f35c8ae344af8b55f16569c3932eb56e6cd15157f84a7ad3afbe515e783f08587069be13f3c579b
|
checksums.yaml.gz.asc
CHANGED
@@ -1,12 +1,11 @@
|
|
1
1
|
-----BEGIN PGP SIGNATURE-----
|
2
|
-
Version: GnuPG
|
3
|
-
Comment: GPGTools - http://gpgtools.org
|
2
|
+
Version: GnuPG v1.4.12 (GNU/Linux)
|
4
3
|
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
=
|
4
|
+
iQEcBAABAgAGBQJSi/dWAAoJEP5F5V2hilTWHgEH/j5D4+0Lu/aglJbnYljwabXV
|
5
|
+
g2/iCJnlgP6uecgZ/ZOnuZ9b8CcE4B9wK+XsHbpqJVO0UiX6KRAJ9aYVvH56JvVL
|
6
|
+
M6QwPIngUKR8HIkaJ4ODs8Wy0dh3Ussetjnk8OtemArueuq4naOlNogQrcdpm0Gt
|
7
|
+
HR5GYMt9NGY8HsaBA6A7yOqHdG5z+21m9Xvz3+ECt2zvKzL+49yOeOxUqG5G1H8/
|
8
|
+
VQPCAtUWVLLI/sy+wsLAkMppFcX3bJ5RHPhn/DDGlQjN2emfuKrdpSLGKHuhtAzr
|
9
|
+
wbRtnVoNe/ZQDDQEaeLixPHAfKqrWbOOyrhw2DjLINUApnYRgpepyIjUU+FqmIk=
|
10
|
+
=pNkb
|
12
11
|
-----END PGP SIGNATURE-----
|
data.tar.gz.asc
CHANGED
@@ -1,12 +1,11 @@
|
|
1
1
|
-----BEGIN PGP SIGNATURE-----
|
2
|
-
Version: GnuPG
|
3
|
-
Comment: GPGTools - http://gpgtools.org
|
2
|
+
Version: GnuPG v1.4.12 (GNU/Linux)
|
4
3
|
|
5
|
-
|
6
|
-
|
7
|
-
/
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
=
|
4
|
+
iQEcBAABAgAGBQJSi/dTAAoJEP5F5V2hilTWsOUIALaRdak6Ouh5Hks6m1/H9Du9
|
5
|
+
KljVXqXKwNwChG+7G8iEjF+z+XSTYcc8s7NoGOpdv61ydCHVJb9LNNmA9hshJFNE
|
6
|
+
Jko4+Iroe/bI6Vd1nq8sudWSslGx1LrPaJD4emCmLn0XuuUX1hh7VAo+500afy2D
|
7
|
+
5Qbc9ocpTe3q9f/b4/++7g1mTL+IlnSR+bCKwpfb5thNfDhZgf4PVVsf5cCs4qDg
|
8
|
+
3bsp3Mx8LYTozo4t4cjEotzmQND7/ROpsY/VM6HZAq2JAAiM7Y77OGg0NKzf2ITN
|
9
|
+
Ofq5xOZxfwY1R87k/NXvDN3GJ85HMm21lR0/G5cPNKy8ok/y6MA0zCGoMzhGnYY=
|
10
|
+
=oyQi
|
12
11
|
-----END PGP SIGNATURE-----
|
data/lib/stackdriver.rb
CHANGED
@@ -8,8 +8,8 @@ module StackDriver
|
|
8
8
|
@api_key = api_key
|
9
9
|
end
|
10
10
|
|
11
|
-
def self.send_metric name, value, time
|
12
|
-
msg = build_message name, value, time
|
11
|
+
def self.send_metric name, value, time, instance=''
|
12
|
+
msg = build_message name, value, time, instance
|
13
13
|
post MultiJson.dump(msg)
|
14
14
|
end
|
15
15
|
|
@@ -31,9 +31,9 @@ module StackDriver
|
|
31
31
|
end
|
32
32
|
end
|
33
33
|
|
34
|
-
def self.build_message name, value, time
|
34
|
+
def self.build_message name, value, time, instance=''
|
35
35
|
data_point = {'name' => name, 'value' => value, 'collected_at' => time}
|
36
|
-
|
36
|
+
data_point.merge!('instance' => instance) unless instance.empty?
|
37
37
|
{'timestamp' => Time.now.to_i, 'customer_id' => @customer_id,
|
38
38
|
'proto_version' => '1', 'data' => data_point}
|
39
39
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: stackdriver
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Grant T. Olson
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2013-
|
11
|
+
date: 2013-11-19 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: multi_json
|
@@ -53,7 +53,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
53
53
|
version: '0'
|
54
54
|
requirements: []
|
55
55
|
rubyforge_project:
|
56
|
-
rubygems_version: 2.0.
|
56
|
+
rubygems_version: 2.0.6
|
57
57
|
signing_key:
|
58
58
|
specification_version: 4
|
59
59
|
summary: Send StackDriver custom metrics
|
metadata.gz.asc
CHANGED
@@ -1,12 +1,11 @@
|
|
1
1
|
-----BEGIN PGP SIGNATURE-----
|
2
|
-
Version: GnuPG
|
3
|
-
Comment: GPGTools - http://gpgtools.org
|
2
|
+
Version: GnuPG v1.4.12 (GNU/Linux)
|
4
3
|
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
=
|
4
|
+
iQEcBAABAgAGBQJSi/dPAAoJEP5F5V2hilTWrkwIAJPzJ3EGd1++cCdO/Z+G+CKK
|
5
|
+
OY1RmA6sP4x8nD+XFQxdPASHHXN9Qto6/dtQTnD5nStJxiGF9mh7f+K2vu/3Vq2u
|
6
|
+
ugqlA/jE0WkRzgQGZF6jGUyzjfOkGl4CTuFoNV2a/D+s86i4JOw74tt1pLs42Fvf
|
7
|
+
AMUYN1F//Dlqg1psDUPMW8A/QX1T+eb8RbTTUQSw6NTanUuLlD1YlJ39iWDI+aMz
|
8
|
+
omc1y6EJzmBtjBMY+PcLWqJnM/tRpsBJODJhbK7gx2j4X3fbwiOX7ZhDoy4CJyka
|
9
|
+
VFwyUjvgNc7F4YzZwyDD4RD6pSxevJIp54yg1EyQmpejXg4y5ulGLLHbit8adu0=
|
10
|
+
=26D/
|
12
11
|
-----END PGP SIGNATURE-----
|