Sha256: de15561f8ab553faec812b05ca9c221e9e56e6163e2ba6b0700d99a226a6aca8

Contents?: true

Size: 386 Bytes

Versions: 4

Compression:

Stored size: 386 Bytes

Contents

# Get Monthly Usage Attribution returns "OK" response

require "datadog_api_client"
DatadogAPIClient::V2.configure do |config|
  config.unstable_operations[:get_monthly_usage_attribution] = true
end
api_instance = DatadogAPIClient::V1::UsageMeteringAPI.new
p api_instance.get_monthly_usage_attribution((Time.now + -3 * 86400), MonthlyUsageAttributionSupportedMetrics::INFRA_HOST_USAGE)

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
datadog_api_client-1.9.0 examples/v1/usage-metering/GetMonthlyUsageAttribution.rb
datadog_api_client-1.8.0 examples/v1/usage-metering/GetMonthlyUsageAttribution.rb
datadog_api_client-1.7.0 examples/v1/usage-metering/GetMonthlyUsageAttribution.rb
datadog_api_client-1.6.0 examples/v1/usage-metering/GetMonthlyUsageAttribution.rb