Sha256: 15c7e869a5b9e38e5997d824013304d89e695574c7c17fd789a7298380ae6d9b

Contents?: true

Size: 381 Bytes

Versions: 10

Compression:

Stored size: 381 Bytes

Contents

# Get Monthly Cost Attribution returns "OK" response

require "datadog_api_client"
DatadogAPIClient.configure do |config|
  config.unstable_operations["v2.get_monthly_cost_attribution".to_sym] = true
end
api_instance = DatadogAPIClient::V2::UsageMeteringAPI.new
p api_instance.get_monthly_cost_attribution((Time.now + -5 * 86400), (Time.now + -3 * 86400), "infra_host_total_cost")

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
datadog_api_client-2.27.1 examples/v2/usage-metering/GetMonthlyCostAttribution.rb
datadog_api_client-2.26.1 examples/v2/usage-metering/GetMonthlyCostAttribution.rb
datadog_api_client-2.26.0 examples/v2/usage-metering/GetMonthlyCostAttribution.rb
datadog_api_client-2.25.0 examples/v2/usage-metering/GetMonthlyCostAttribution.rb
datadog_api_client-2.24.0 examples/v2/usage-metering/GetMonthlyCostAttribution.rb
datadog_api_client-2.22.0 examples/v2/usage-metering/GetMonthlyCostAttribution.rb
datadog_api_client-2.21.0 examples/v2/usage-metering/GetMonthlyCostAttribution.rb
datadog_api_client-2.20.0 examples/v2/usage-metering/GetMonthlyCostAttribution.rb
datadog_api_client-2.19.0 examples/v2/usage-metering/GetMonthlyCostAttribution.rb
datadog_api_client-2.18.0 examples/v2/usage-metering/GetMonthlyCostAttribution.rb