librato-metrics 1.0.3 → 1.0.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/.travis.yml +2 -1
- data/CHANGELOG.md +3 -0
- data/README.md +2 -2
- data/lib/librato/metrics/connection.rb +4 -1
- data/lib/librato/metrics/version.rb +1 -1
- metadata +4 -4
data/.travis.yml
CHANGED
data/CHANGELOG.md
CHANGED
data/README.md
CHANGED
|
@@ -137,8 +137,8 @@ At a minimum each annotation needs to be assigned to a stream and to have a titl
|
|
|
137
137
|
There are a number of optional fields which can make annotations even more powerful:
|
|
138
138
|
|
|
139
139
|
Librato::Metrics.annotate :deployments, 'deployed v46', :source => 'frontend',
|
|
140
|
-
|
|
141
|
-
|
|
140
|
+
:start_time => 1354662596, :end_time => 1354662608,
|
|
141
|
+
:description => 'Deployed 6f3bc6e67682: fix lotsa bugs…'
|
|
142
142
|
|
|
143
143
|
More fine-grained control of annotations is available via the `Annotator` object:
|
|
144
144
|
|
|
@@ -29,7 +29,10 @@ module Librato
|
|
|
29
29
|
|
|
30
30
|
def transport
|
|
31
31
|
raise(NoClientProvided, "No client provided.") unless @client
|
|
32
|
-
@transport ||= Faraday::Connection.new(
|
|
32
|
+
@transport ||= Faraday::Connection.new(
|
|
33
|
+
:url => api_endpoint + "/v1/",
|
|
34
|
+
:request => {:open_timeout => 20, :timeout => 30}) do |f|
|
|
35
|
+
|
|
33
36
|
f.use Librato::Metrics::Middleware::RequestBody
|
|
34
37
|
f.use Librato::Metrics::Middleware::Retry
|
|
35
38
|
f.use Librato::Metrics::Middleware::CountRequests
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: librato-metrics
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.0.
|
|
4
|
+
version: 1.0.4
|
|
5
5
|
prerelease:
|
|
6
6
|
platform: ruby
|
|
7
7
|
authors:
|
|
@@ -9,7 +9,7 @@ authors:
|
|
|
9
9
|
autorequire:
|
|
10
10
|
bindir: bin
|
|
11
11
|
cert_chain: []
|
|
12
|
-
date: 2013-
|
|
12
|
+
date: 2013-04-05 00:00:00.000000000 Z
|
|
13
13
|
dependencies:
|
|
14
14
|
- !ruby/object:Gem::Dependency
|
|
15
15
|
name: faraday
|
|
@@ -218,7 +218,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
|
218
218
|
version: '0'
|
|
219
219
|
segments:
|
|
220
220
|
- 0
|
|
221
|
-
hash:
|
|
221
|
+
hash: 236501250346713379
|
|
222
222
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
223
223
|
none: false
|
|
224
224
|
requirements:
|
|
@@ -227,7 +227,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
227
227
|
version: '0'
|
|
228
228
|
requirements: []
|
|
229
229
|
rubyforge_project:
|
|
230
|
-
rubygems_version: 1.8.
|
|
230
|
+
rubygems_version: 1.8.25
|
|
231
231
|
signing_key:
|
|
232
232
|
specification_version: 2
|
|
233
233
|
summary: Ruby wrapper for Librato's Metrics API
|