librato-metrics 1.6.0 → 1.6.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.travis.yml +5 -3
- data/CHANGELOG.md +3 -0
- data/lib/librato/metrics/client.rb +4 -3
- data/lib/librato/metrics/version.rb +1 -1
- data/spec/integration/metrics_spec.rb +5 -0
- metadata +9 -48
- data.tar.gz.sig +0 -0
- metadata.gz.sig +0 -1
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 8eab835fe1802df6623e11b211006530d672c396
|
4
|
+
data.tar.gz: 7d8bdbfe47600e8c85c5d10b290a56299ef5314a
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: ada14595404fa452e085b2dc7ea4a35708b8f75822a9a3b894e9bee9afd4733ba6e04e5b450d382297e1ee729a9afae2f5a978f3e22a41a9db75f654c80b8156
|
7
|
+
data.tar.gz: db8c24650f0cc84697251e7adcb52a2763aa1782aeca0f8761c41fbbb41015c2c4f98af29eb175172189cc57fc96d5a369c72ac0fd43f7ee35df1f9508816dea
|
data/.travis.yml
CHANGED
data/CHANGELOG.md
CHANGED
@@ -379,7 +379,8 @@ module Librato
|
|
379
379
|
#
|
380
380
|
# @param [Hash] filter
|
381
381
|
def sources(filter = {})
|
382
|
-
query =
|
382
|
+
query = {}
|
383
|
+
query[:name] = filter[:name] if filter.has_key?(:name)
|
383
384
|
path = "sources"
|
384
385
|
Collection.paginated_collection("sources", connection, path, query)
|
385
386
|
end
|
@@ -387,7 +388,7 @@ module Librato
|
|
387
388
|
# Retrieve a single source by name. See http://dev.librato.com/v1/get/sources/:name
|
388
389
|
#
|
389
390
|
# @example Get the source for a particular EC2 instance from Cloudwatch
|
390
|
-
# Librato::Metrics.
|
391
|
+
# Librato::Metrics.get_source "us-east-1b.i-f1bc8c9c"
|
391
392
|
#
|
392
393
|
# @param String name
|
393
394
|
def get_source(name)
|
@@ -399,7 +400,7 @@ module Librato
|
|
399
400
|
# Update a source by name. See http://dev.librato.com/v1/get/sources/:name
|
400
401
|
#
|
401
402
|
# @example Update the source display name for a particular EC2 instance from Cloudwatch
|
402
|
-
# Librato::Metrics.
|
403
|
+
# Librato::Metrics.update_source "us-east-1b.i-f1bc8c9c", display_name: "Production Web 1"
|
403
404
|
#
|
404
405
|
# @param String name
|
405
406
|
# @param Hash options
|
@@ -322,6 +322,11 @@ module Librato
|
|
322
322
|
test_source = sources.detect { |s| s["name"] == "sources_api_test" }
|
323
323
|
test_source["display_name"].should == "Sources Api Test"
|
324
324
|
end
|
325
|
+
|
326
|
+
it "should allow filtering by name" do
|
327
|
+
sources = Metrics.sources name: 'sources_api_test'
|
328
|
+
sources.all? {|s| s['name'] =~ /sources_api_test/}.should be_true
|
329
|
+
end
|
325
330
|
end
|
326
331
|
|
327
332
|
describe "#get_source" do
|
metadata
CHANGED
@@ -1,48 +1,19 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: librato-metrics
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.6.
|
5
|
-
prerelease:
|
4
|
+
version: 1.6.1
|
6
5
|
platform: ruby
|
7
6
|
authors:
|
8
7
|
- Matt Sanders
|
9
8
|
autorequire:
|
10
9
|
bindir: bin
|
11
10
|
cert_chain:
|
12
|
-
-
|
13
|
-
|
14
|
-
Z0lCQURBTkJna3Foa2lHOXcwQkFRVUZBREJCTVJFd0R3WURWUVFEREFoeWRX
|
15
|
-
SjUKWjJWdGN6RVhNQlVHQ2dtU0pvbVQ4aXhrQVJrV0IyeHBZbkpoZEc4eEV6
|
16
|
-
QVJCZ29Ka2lhSmsvSXNaQUVaRmdOagpiMjB3SGhjTk1UTXdPREE0TWpJeE9U
|
17
|
-
UTJXaGNOTVRRd09EQTRNakl4T1RRMldqQkJNUkV3RHdZRFZRUUREQWh5CmRX
|
18
|
-
SjVaMlZ0Y3pFWE1CVUdDZ21TSm9tVDhpeGtBUmtXQjJ4cFluSmhkRzh4RXpB
|
19
|
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cERtbDdPbzlzQ1hUcEMya2kvNVZla1RYa3BGclVz
|
35
|
-
UVJYamxYUGttVDMvCnhhODU4QkdSanZVNTlXUEUxM1FHaWJhN1lJZUh0UkV2
|
36
|
-
Tng0MkpJZm9KTVY3NG9mcktJdVR3OUNNdG8yZ3o5WHgKS3gxbmNuMDdBK2JK
|
37
|
-
bktaNmhlblFBRjFDSDk2WmNxY0pIMTc5UzJ0SWlLRE04a2VlUklVT1BDM1dU
|
38
|
-
MGZhb2svMgpnQTJvemRyODUxYy9uQT09Ci0tLS0tRU5EIENFUlRJRklDQVRF
|
39
|
-
LS0tLS0K
|
40
|
-
date: 2015-12-02 00:00:00.000000000 Z
|
11
|
+
- certs/librato-public.pem
|
12
|
+
date: 2016-03-15 00:00:00.000000000 Z
|
41
13
|
dependencies:
|
42
14
|
- !ruby/object:Gem::Dependency
|
43
15
|
name: faraday
|
44
16
|
requirement: !ruby/object:Gem::Requirement
|
45
|
-
none: false
|
46
17
|
requirements:
|
47
18
|
- - ~>
|
48
19
|
- !ruby/object:Gem::Version
|
@@ -50,7 +21,6 @@ dependencies:
|
|
50
21
|
type: :runtime
|
51
22
|
prerelease: false
|
52
23
|
version_requirements: !ruby/object:Gem::Requirement
|
53
|
-
none: false
|
54
24
|
requirements:
|
55
25
|
- - ~>
|
56
26
|
- !ruby/object:Gem::Version
|
@@ -58,23 +28,20 @@ dependencies:
|
|
58
28
|
- !ruby/object:Gem::Dependency
|
59
29
|
name: multi_json
|
60
30
|
requirement: !ruby/object:Gem::Requirement
|
61
|
-
none: false
|
62
31
|
requirements:
|
63
|
-
- -
|
32
|
+
- - '>='
|
64
33
|
- !ruby/object:Gem::Version
|
65
34
|
version: '0'
|
66
35
|
type: :runtime
|
67
36
|
prerelease: false
|
68
37
|
version_requirements: !ruby/object:Gem::Requirement
|
69
|
-
none: false
|
70
38
|
requirements:
|
71
|
-
- -
|
39
|
+
- - '>='
|
72
40
|
- !ruby/object:Gem::Version
|
73
41
|
version: '0'
|
74
42
|
- !ruby/object:Gem::Dependency
|
75
43
|
name: aggregate
|
76
44
|
requirement: !ruby/object:Gem::Requirement
|
77
|
-
none: false
|
78
45
|
requirements:
|
79
46
|
- - ~>
|
80
47
|
- !ruby/object:Gem::Version
|
@@ -82,7 +49,6 @@ dependencies:
|
|
82
49
|
type: :runtime
|
83
50
|
prerelease: false
|
84
51
|
version_requirements: !ruby/object:Gem::Requirement
|
85
|
-
none: false
|
86
52
|
requirements:
|
87
53
|
- - ~>
|
88
54
|
- !ruby/object:Gem::Version
|
@@ -142,29 +108,25 @@ files:
|
|
142
108
|
homepage: https://github.com/librato/librato-metrics
|
143
109
|
licenses:
|
144
110
|
- BSD 3-clause
|
111
|
+
metadata: {}
|
145
112
|
post_install_message:
|
146
113
|
rdoc_options:
|
147
114
|
- --charset=UTF-8
|
148
115
|
require_paths:
|
149
116
|
- lib
|
150
117
|
required_ruby_version: !ruby/object:Gem::Requirement
|
151
|
-
none: false
|
152
118
|
requirements:
|
153
|
-
- -
|
119
|
+
- - '>='
|
154
120
|
- !ruby/object:Gem::Version
|
155
121
|
version: '0'
|
156
|
-
segments:
|
157
|
-
- 0
|
158
|
-
hash: -3931930914702254073
|
159
122
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
160
|
-
none: false
|
161
123
|
requirements:
|
162
|
-
- -
|
124
|
+
- - '>='
|
163
125
|
- !ruby/object:Gem::Version
|
164
126
|
version: '0'
|
165
127
|
requirements: []
|
166
128
|
rubyforge_project:
|
167
|
-
rubygems_version:
|
129
|
+
rubygems_version: 2.0.14
|
168
130
|
signing_key:
|
169
131
|
specification_version: 2
|
170
132
|
summary: Ruby wrapper for Librato's Metrics API
|
@@ -183,4 +145,3 @@ test_files:
|
|
183
145
|
- spec/unit/metrics/queue/autosubmission_spec.rb
|
184
146
|
- spec/unit/metrics/queue_spec.rb
|
185
147
|
- spec/unit/metrics_spec.rb
|
186
|
-
has_rdoc:
|
data.tar.gz.sig
DELETED
Binary file
|
metadata.gz.sig
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
P��Ndf��)�+��믂Jg��Tm�@gR��ȍ뽣��sB=e�������*v�CZ�C��I\x�/�3��7�������)Y�]7d��3��dFr_'���������YZ'7/�z?4嘏���S�~Pw2��.���:q:*̦̕m�� �^
|