librato-metrics 1.5.0 → 1.5.1
Sign up to get free protection for your applications and to get access to all the features.
- data.tar.gz.sig +0 -0
- data/CHANGELOG.md +3 -0
- data/README.md +1 -1
- data/lib/librato/metrics/aggregator.rb +2 -2
- data/lib/librato/metrics/annotator.rb +1 -3
- data/lib/librato/metrics/version.rb +1 -1
- metadata +4 -4
- metadata.gz.sig +0 -0
data.tar.gz.sig
CHANGED
Binary file
|
data/CHANGELOG.md
CHANGED
data/README.md
CHANGED
@@ -291,4 +291,4 @@ We also maintain a set of [examples of common uses](https://github.com/librato/l
|
|
291
291
|
|
292
292
|
## Copyright
|
293
293
|
|
294
|
-
Copyright (c) 2011-
|
294
|
+
Copyright (c) 2011-2015 [Librato Inc.](http://librato.com) See LICENSE for details.
|
@@ -43,10 +43,10 @@ module Librato
|
|
43
43
|
# Add a metric entry to the metric set:
|
44
44
|
#
|
45
45
|
# @example Basic use
|
46
|
-
#
|
46
|
+
# aggregator.add 'request.time' => 30.24
|
47
47
|
#
|
48
48
|
# @example With a custom source
|
49
|
-
#
|
49
|
+
# aggregator.add 'request.time' => {value: 20.52, source: 'staging'}
|
50
50
|
#
|
51
51
|
# @param [Hash] measurements measurements to add
|
52
52
|
# @return [Aggregator] returns self
|
@@ -31,9 +31,7 @@ module Librato::Metrics
|
|
31
31
|
#
|
32
32
|
def add(stream, title, options={})
|
33
33
|
options[:title] = title
|
34
|
-
|
35
|
-
options[:start_time] = options[:start_time].to_i
|
36
|
-
end
|
34
|
+
options[:start_time] = (options[:start_time] || Time.now).to_i
|
37
35
|
if options[:end_time]
|
38
36
|
options[:end_time] = options[:end_time].to_i
|
39
37
|
end
|
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.5.
|
4
|
+
version: 1.5.1
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -37,7 +37,7 @@ cert_chain:
|
|
37
37
|
bktaNmhlblFBRjFDSDk2WmNxY0pIMTc5UzJ0SWlLRE04a2VlUklVT1BDM1dU
|
38
38
|
MGZhb2svMgpnQTJvemRyODUxYy9uQT09Ci0tLS0tRU5EIENFUlRJRklDQVRF
|
39
39
|
LS0tLS0K
|
40
|
-
date:
|
40
|
+
date: 2015-06-16 00:00:00.000000000 Z
|
41
41
|
dependencies:
|
42
42
|
- !ruby/object:Gem::Dependency
|
43
43
|
name: faraday
|
@@ -155,7 +155,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
155
155
|
version: '0'
|
156
156
|
segments:
|
157
157
|
- 0
|
158
|
-
hash:
|
158
|
+
hash: 1872343750244611276
|
159
159
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
160
160
|
none: false
|
161
161
|
requirements:
|
@@ -164,7 +164,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
164
164
|
version: '0'
|
165
165
|
requirements: []
|
166
166
|
rubyforge_project:
|
167
|
-
rubygems_version: 1.8.23
|
167
|
+
rubygems_version: 1.8.23.2
|
168
168
|
signing_key:
|
169
169
|
specification_version: 2
|
170
170
|
summary: Ruby wrapper for Librato's Metrics API
|
metadata.gz.sig
CHANGED
Binary file
|