class Dogapi::V1::SnapshotService
Constants
- API_VERSION
Public Instance Methods
snapshot(metric_query, start_ts, end_ts, event_query=nil)
click to toggle source
# File lib/dogapi/v1/snapshot.rb 12 def snapshot(metric_query, start_ts, end_ts, event_query=nil) 13 extra_params = { 14 :metric_query => metric_query, 15 :start => start_ts, 16 :end => end_ts, 17 } 18 19 extra_params[:event_query] = event_query if event_query 20 21 request(Net::HTTP::Get, "/api/#{API_VERSION}/graph/snapshot", extra_params, nil, false) 22 end