Sha256: 9c60dccdce910b523aa5f6ce7db9fedbdbac729e048c2b3ddd46b877bcfcf830
Contents?: true
Size: 693 Bytes
Versions: 1
Compression:
Stored size: 693 Bytes
Contents
require 'dogapi-demo' module DogapiDemo class V1 # for namespacing class SnapshotService < DogapiDemo::APIService API_VERSION = "v1" def snapshot(metric_query, start_ts, end_ts, event_query=nil) begin params = { :api_key => @api_key, :application_key => @application_key, :metric_query => metric_query, :start => start_ts, :end => end_ts, :event_query => event_query } request(Net::HTTP::Get, "/api/#{API_VERSION}/graph/snapshot", params, nil, false) rescue Exception => e suppress_error_if_silent e end end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
dogapi-demo-0.1.0 | lib/dogapi-demo/v1/snapshot.rb |