circonus 3.6.10 → 3.6.11
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/circonus.rb +1 -1
- metadata +1 -1
data/lib/circonus.rb
CHANGED
@@ -152,7 +152,7 @@ class Circonus
|
|
152
152
|
def get_data(cid,metric,params = {})
|
153
153
|
params['start'] = (Time.now - 3600).to_i unless params.has_key? 'start'
|
154
154
|
params['end'] = Time.now.to_i unless params.has_key? 'end'
|
155
|
-
params['period'] = 300 unless
|
155
|
+
params['period'] = 300 unless params.has_key? 'period'
|
156
156
|
params['type'] = 'numeric' unless params.has_key? 'type'
|
157
157
|
url = @url_prefix + 'data' + '/' + URI.escape(cid.to_s.split('/').last) + '_' + URI::escape(metric)
|
158
158
|
headers = @headers.merge({:params => params})
|