Sha256: ab5d94ecbbc5a481a0efec6abb2ea488bc85d706a5192e0d99ad8055ecce9d66

Contents?: true

Size: 382 Bytes

Versions: 4

Compression:

Stored size: 382 Bytes

Contents

# GetEstimatedCostByOrg with start_month 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_month: (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_3186693804.rb
datadog_api_client-2.0.2 examples/v2/usage-metering/GetEstimatedCostByOrg_3186693804.rb
datadog_api_client-2.0.1 examples/v2/usage-metering/GetEstimatedCostByOrg_3186693804.rb
datadog_api_client-2.0.0 examples/v2/usage-metering/GetEstimatedCostByOrg_3186693804.rb