=begin #Datadog API V1 Collection #Collection of all Datadog Public endpoints. The version of the OpenAPI document: 1.0 Contact: support@datadoghq.com Generated by: https://openapi-generator.tech Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. This product includes software developed at Datadog (https://www.datadoghq.com/). Copyright 2020-Present Datadog, Inc. =end require 'spec_helper' require 'json' # Unit tests for DatadogAPIClient::V1::SnapshotsAPI # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate describe 'SnapshotsAPI' do before do # run before each test @api_instance = DatadogAPIClient::V1::SnapshotsAPI.new end after do # run after each test end describe 'test an instance of SnapshotsAPI' do it 'should create an instance of SnapshotsAPI' do expect(@api_instance).to be_instance_of(DatadogAPIClient::V1::SnapshotsAPI) end end # unit tests for get_graph_snapshot # Take graph snapshots # Take graph snapshots. **Note**: When a snapshot is created, there is some delay before it is available. # @param start The POSIX timestamp of the start of the query. # @param _end The POSIX timestamp of the end of the query. # @param [Hash] opts the optional parameters # @option opts [String] :metric_query The metric query. # @option opts [String] :event_query A query that adds event bands to the graph. # @option opts [String] :graph_def A JSON document defining the graph. `graph_def` can be used instead of `metric_query`. The JSON document uses the [grammar defined here](https://docs.datadoghq.com/graphing/graphing_json/#grammar) and should be formatted to a single line then URL encoded. # @option opts [String] :title A title for the graph. If no title is specified, the graph does not have a title. # @return [GraphSnapshot] describe 'get_graph_snapshot test' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end end