Sha256: 4493135c2907d7aa354fafecdf7e270e0555b020c1ddc11d1887f6923393fefc
Contents?: true
Size: 745 Bytes
Versions: 1
Compression:
Stored size: 745 Bytes
Contents
# Unless explicitly stated otherwise all files in this repository are licensed under the BSD-3-Clause License. # This product includes software developed at Datadog (https://www.datadoghq.com/). # Copyright 2011-Present Datadog, Inc. module Dogapi class V1 # for namespacing class SnapshotService < Dogapi::APIService API_VERSION = 'v1' def snapshot(metric_query, start_ts, end_ts, event_query=nil) extra_params = { :metric_query => metric_query, :start => start_ts, :end => end_ts, } extra_params[:event_query] = event_query if event_query request(Net::HTTP::Get, "/api/#{API_VERSION}/graph/snapshot", extra_params, nil, false) end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
dogapi-1.45.0 | lib/dogapi/v1/snapshot.rb |