Sha256: 0ac9a5c10429248dd7f3ed98db1a975fd627bf34abec55ac6f44883fd2cb1b9e

Contents?: true

Size: 380 Bytes

Versions: 4

Compression:

Stored size: 380 Bytes

Contents

# GetEstimatedCostByOrg with start_date returns "OK" response

require "datadog_api_client"
DatadogAPIClient::V2.configure do |config|
  config.unstable_operations["v2.get_estimated_cost_by_org".to_sym] = true
end
api_instance = DatadogAPIClient::V2::UsageMeteringAPI.new
opts = {
  start_date: (Time.now + -5 * 86400),
}
p api_instance.get_estimated_cost_by_org("sub-org", opts)

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
datadog_api_client-2.1.0 examples/v2/usage-metering/GetEstimatedCostByOrg_2734954020.rb
datadog_api_client-2.0.2 examples/v2/usage-metering/GetEstimatedCostByOrg_2734954020.rb
datadog_api_client-2.0.1 examples/v2/usage-metering/GetEstimatedCostByOrg_2734954020.rb
datadog_api_client-2.0.0 examples/v2/usage-metering/GetEstimatedCostByOrg_2734954020.rb