circonus 3.6.10 → 3.6.11
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/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})
|